|
|
|
|
|
|
|
|
1. Import the include() function: from django.urls import include, path |
|
|
1. Import the include() function: from django.urls import include, path |
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
|
|
""" |
|
|
""" |
|
|
from django.contrib import admin |
|
|
|
|
|
from django.urls import path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from django.contrib import admin |
|
|
|
|
|
from django.urls import path, include |
|
|
urlpatterns = [ |
|
|
urlpatterns = [ |
|
|
|
|
|
path('posts/' , include('posts.urls')), |
|
|
path('admin/', admin.site.urls), |
|
|
path('admin/', admin.site.urls), |
|
|
|
|
|
|
|
|
] |
|
|
] |