Opened 7 years ago

Closed 7 years ago

#28537 closed Bug (invalid)

Urlpatterns don't work.

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 lao zzzi)

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?

Change History (2)

comment:1 by lao zzzi, 7 years ago

Description: modified (diff)

comment:2 by lao zzzi, 7 years ago

Resolution: invalid
Status: newclosed

it was my mistake, sorry)

Note: See TracTickets for help on using tickets.
Back to Top