Check your app url, does the url match with wath u have on your browser, On Sat, May 9, 2020, 01:59 Luqman Jr <ngall...@gmail.com> wrote:
> Hello > Did you create urls.py under polls app? > You should have urls.py under polls app which will list all urls fall > under this app. > Then share with us polls/urls.py and polls/views.py so that we can help > more on this. > On 9 May 2020, 03:11 +0300, Randy Zeitvogel <randyzeitvo...@gmail.com>, > wrote: > > I just started working with Django in the last couple of days. > First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1. Second > environment is Fedora 31, python 3.7.5, and Django 3.0.6. > In both cases after I create the polls app and try it out, I get this: > > Page not found (404) > Request Method: GET > Request URL: http://localhost:8000/polls/ > > 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. > > 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. > > > The feedback from the development web server (python manage.py runserver) > is: > > > jango version 3.0.6, using settings 'mysite.settings' > Starting development server at http://127.0.0.1:8000/ > Quit the server with CONTROL-C. > Not Found: /polls/ > [08/May/2020 17:28:16] "GET /polls/ HTTP/1.1" 404 1957 > > My mysite/urls.py looks like this: > > > from django.contrib import admin > from django.urls import include, path > > urlpatterns = [ > path('polls/', include('polls.urls')), > path('admin/', admin.site.urls), > ] > > > Any help would be appreciated. > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b7b3b071-7255-4fc1-84c8-db7d1766e5dd%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b7b3b071-7255-4fc1-84c8-db7d1766e5dd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3baac878-0c7c-4bec-8788-5d04b21bcccc%40Spark > <https://groups.google.com/d/msgid/django-users/3baac878-0c7c-4bec-8788-5d04b21bcccc%40Spark?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn72nXUhtAgixbk6YNLY1kmrNycuj36VeM80S6kX7GZQPKg%40mail.gmail.com.