Look like url is missing. try to add this line to urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'),]
On Tuesday, April 24, 2018 at 5:04:33 PM UTC+5:30, aljom...@live.com wrote: > > hi. i'm new to django dev. so i'm following the tutorial at > https://docs.djangoproject.com/en/2.0/intro/tutorial01/ > > i copied and pasted the code samples so as not to introduce typing > mistakes. everything works fine until i reached the "polls" section. i get > below errors: > > Page not found (404) > Request Method: GET > Request URL: http://127.0.0.1:8000/polls/ > > 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. > > You're seeing this error because you have DEBUG = True in your Django > settings file. Change that to False, and Django will display a standard 404 > page. > > when i open http://127.0.0.1:8000/polls/ > > what could be the reason? > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f42defe7-2712-43e9-b0a4-ab8491b7f328%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.