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 consist. What have I
done wrong?
--
Ticket URL: <https://code.djangoproject.com/ticket/28537>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> 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 consist. What have
> I done wrong?
New description:
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?
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28537#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
it was my mistake, sorry)
--
Ticket URL: <https://code.djangoproject.com/ticket/28537#comment:2>