Building a new route

This commit is contained in:
2022-01-02 17:42:20 +01:00
parent f264d675ee
commit da97b7ef60
2 changed files with 9 additions and 2 deletions

View File

@@ -14,8 +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 django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path("admin/", admin.site.urls),
path("projects/", include("projects.urls")),
]

6
projects/urls.py Normal file
View File

@@ -0,0 +1,6 @@
from django.urls import path
from projects import views
urlpatterns = [
path("", views.project_list),
]