Building a new route
This commit is contained in:
1 parent
f264d675ee
commit
da97b7ef60
2 files changed
+9
-2
No files matched your search
+3
-2
@@ -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")),
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from projects import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.project_list),
|
||||
]
|
||||
Reference in new issue
Block a user