Saturday, February 24, 2018

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

What you are seeing is correct.
That congratulations page is only displayed by django when you have no url's defined other than admin. Once you add your first URL django gets out of the way and does not show that splash screen.

The error is saying you do no have anything defined in your URLs as / (or empty), The polls app is in /polls/ (http://localhost:8000/polls/). Which at this point in the tutorial is correct.

Dylan

On Sat, Feb 24, 2018 at 3:09 PM, Chunjing Jia <jiacjustc@gmail.com> wrote:
Hi,

I am running Django 2.0 tutorial01 for polls. I am seeing this error message 

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.

Without adding polls, my code works fine, and I can see the rocket and congratulation page. But after adding polls, I always get this error message. Even if I use the example code that I found from github with the all the correct setting... 

Does this mean that my installation for Python3 and Django 2.0 may be problematic? What other possibles error may be here? 

Thanks a lot!

Best,
CJ

--
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+unsubscribe@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/7663c42a-06fc-4fc5-9604-dd92143c7ab3%40googlegroups.com.
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 django-users+unsubscribe@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/CAHtg44AEhg%3DH%3DGhG327gdZHY3%3D9mP5cj2rQ353Dy%3DPvuw8YySA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment