From bb5423fcc4b901d88c901d74aa0e22371a06cf34 Mon Sep 17 00:00:00 2001 From: jnfire Date: Tue, 2 Aug 2022 09:04:23 +0200 Subject: [PATCH] add first url add first url --- apps/website/urls.py | 7 +++++++ core/urls.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 apps/website/urls.py diff --git a/apps/website/urls.py b/apps/website/urls.py new file mode 100644 index 0000000..69b66f1 --- /dev/null +++ b/apps/website/urls.py @@ -0,0 +1,7 @@ +from django.urls import path + +from apps.web.views import home + +urlpatterns = [ + path("", home, name="home"), +] \ No newline at end of file diff --git a/core/urls.py b/core/urls.py index 38fd573..f3d2a8c 100644 --- a/core/urls.py +++ b/core/urls.py @@ -14,9 +14,9 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path -from app.website import views as website_views +from django.urls import path, include urlpatterns = [ + path("", include("apps.web.urls")), path("admin/", admin.site.urls), ]