From 3bae51d7897c59fa28f643d9e1871230e10960d0 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Mon, 21 Jan 2019 11:22:42 +0800 Subject: [PATCH] 1 --- chapter2/mysite/mysite/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter2/mysite/mysite/urls.py b/chapter2/mysite/mysite/urls.py index fe252a5..8d8a87b 100644 --- a/chapter2/mysite/mysite/urls.py +++ b/chapter2/mysite/mysite/urls.py @@ -17,6 +17,7 @@ from django.contrib import admin from django.urls import include, path urlpatterns = [ - path('myapp/', include('myapp.urls')), + path('', include('myapp.urls')), + path('myapp/', include('myapp.urls')), path('admin/', admin.site.urls), ]