Tutorial help Blank Front page

213 views
Skip to first unread message

Kareem Hart

unread,
Aug 11, 2017, 2:27:01 PM8/11/17
to Django users
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 



"Александр Христюхин (roboslone)"

unread,
Aug 11, 2017, 2:50:16 PM8/11/17
to django...@googlegroups.com
Hi,

Take a look at the error Django gives you, all registered URLs are listed there.

--
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 post to this group, send email to django...@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/c7383a02-dd7f-407d-9ea0-297e8ca85c4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simran Jeetkaur

unread,
Jun 29, 2018, 7:48:18 AM6/29/18
to Django users
thnku for this.... it worked for me too... :)
Reply all
Reply to author
Forward
0 new messages