From b1a4eefee46f7640d14e7fb5d15840d4620cdb4f Mon Sep 17 00:00:00 2001 From: alokgoldy <43291683+alokgoldy@users.noreply.github.com> Date: Sat, 26 Oct 2019 12:31:01 +0530 Subject: [PATCH] Update urls.py Added comments to urls.py --- src/trydjango19/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/trydjango19/urls.py b/src/trydjango19/urls.py index c023786..d88519b 100644 --- a/src/trydjango19/urls.py +++ b/src/trydjango19/urls.py @@ -20,11 +20,13 @@ from django.contrib import admin urlpatterns = [ + # this will go to admin page url(r'^admin/', admin.site.urls), + # this will go to posts page url(r'^posts/', include("posts.urls", namespace='posts')), #url(r'^posts/$', ".views."), ] if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)