404 error on tried these URL patterns, in this order: ^polls/ ^admin/

20 views
Skip to first unread message

emmanuel wyckens

unread,
Jun 15, 2018, 2:41:41 PM6/15/18
to Django users
Hello

I didn't find my 404 error, it's seems that the issue is arround the urls configuration on the project. In additionnal, find the zip project for more details.
Confg : django 1.11.11, python 2.7

Please could you help me ?

Thanks

In urls.py

from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]

In polls/urls.py

# -*- coding: utf-8 -*-
from django.conf.urls import url, include

from . import views

urlpatterns = [
    url('', views.index, name='index'),
]



mysite3.zip

C. Kirby

unread,
Jun 15, 2018, 8:36:53 PM6/15/18
to Django users
What it the url you tried to access?

emmanuel wyckens

unread,
Jun 18, 2018, 7:55:25 AM6/18/18
to Django users
Hello,

Thank you C. Kirby for yout help,
You have solved my issue by your question.

In fact, I 've forgotten each time to add  /polls or /admin to access to the good web page.

It's working fine now.
Reply all
Reply to author
Forward
0 new messages