about Django tutorial

13 views
Skip to first unread message

田村佑太

unread,
Jul 24, 2019, 7:03:58 AM7/24/19
to Django users

Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

  1. admin/

The current path, polls/, didn't match any of these.


what is the problem of this?


at ./mysite/mysite/urls.py

I wrote this code.

from django.contrib import admin

from django.urls import include, path

urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]

Avi gehlot

unread,
Jul 24, 2019, 7:17:50 AM7/24/19
to django...@googlegroups.com
Medium.com

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8ff414e9-c43d-4479-a330-b7a9492ccfd8%40googlegroups.com.

Lim Kai Wey

unread,
Jul 24, 2019, 7:22:47 AM7/24/19
to django...@googlegroups.com
To  田村佑太,

Is it fine if you show use your urls.py in the polls app as well? I believe the problem is caused from there. 

Regards,
Kai Wey

--
Reply all
Reply to author
Forward
0 new messages