|
@@ -13,9 +13,11 @@ Including another URLconf
|
|
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.conf.urls import include, url
|
|
from django.contrib import admin
|
|
from django.contrib import admin
|
|
from django.urls import path
|
|
from django.urls import path
|
|
|
|
|
|
urlpatterns = [
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('admin/', admin.site.urls),
|
|
|
|
+ url(r'', include('blog.urls')),
|
|
]
|
|
]
|