Opened 7 years ago
Last modified 7 years ago
#28537 closed Bug
Urlpatterns don't work. — at Version 1
Reported by: | lao zzzi | Owned by: | nobody |
---|---|---|---|
Component: | Core (URLs) | Version: | 1.11 |
Severity: | Normal | Keywords: | urlpatterns |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
mysite.urls
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), ]
when I run http://localhost:8000/polls/ it shows error 404 with description
"Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
admin/
The current path, polls/, didn't match any of these."
So, it doesn't check the first pattern like it wasn't exist. What have I done wrong?
Note:
See TracTickets
for help on using tickets.