thnku for this.... it worked for me too... :) On Friday, August 11, 2017 at 11:50:16 AM UTC-7, Александр Христюхин wrote: > > Hi, > > You should open "http://127.0.0.1:8000/polls/" instead of " > http://127.0.0.1:8000/". > Take a look at the error Django gives you, all registered URLs are listed > there. > > On 11 Aug 2017, at 20:56, Kareem Hart <[email protected] <javascript:>> > wrote: > > I am currently doing the tutorial and I'm writing views. > > I wrote my index.html file and updated the view to use a loader and add > the extra code that they provided. It tells me next to load > 127.0.0.1:8000/polls and I should see a bulleted list containing the > "whats up" question but my page is blank. > > Also when I point my browser towards the http://127.0.0.1:8000/, it gives > me the following error. > > Page not found (404) > Request Method: GET > Request URL: http://127.0.0.1:8000/ > > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > > 1. ^polls/ > 2. ^admin/ > > The empty path didn't match any of these. > > > So I checked the code for mysite.urls. > > > 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), > > ] > > I ran the following command and got no issues. > $python manage.py check > > > > > -- > 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 [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > 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/c7383a02-dd7f-407d-9ea0-297e8ca85c4b%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/c7383a02-dd7f-407d-9ea0-297e8ca85c4b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > >
-- 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 [email protected]. To post to this group, send email to [email protected]. 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/7c0f2cf7-35f9-4150-bd32-9d016b99d67d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

