Request Method: | GET |
---|---|
Request URL: | http://localhost:8000/polls |
Using the URLconf defined in learning_python.urls
, Django tried these URL patterns, in this order:
The current URL, polls
, didn't match any of these.
The next step is to point the root URLconf at the polls.urls
module. Inmysite/urls.py
, add an import for django.conf.urls.include
and insert an include()
in the urlpatterns
list, so you have:
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ]
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/56610bfb-c82b-426c-8346-ec8abe2300d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Thank you