The 404 problem of Django

Learning Django, according to tutorial has been made, until the

On the tragedy, detailed error information

Is the time when access to the throws an exception

And check for many times, Google also failed, but to help you.

Started by Pearl at February 02, 2016 - 7:07 PM

Paste your code.

Posted by Devin at February 13, 2016 - 7:50 PM



Posted by Pearl at February 18, 2016 - 8:36 PM

HI, Start Django is the development of version 1.7 was later replaced the stable version 1.5, as was done once, or card in this volume

Is this a few steps, do not understand what is wrong. can access 404

Posted by Pearl at March 03, 2016 - 9:17 PM

This URL you not to introduce: URL (r'^polls/','polls.urls'), suggest that you first according to the Django, and then modify their own.

Posted by Devin at March 13, 2016 - 9:19 PM

I take the official tutorial realized, on GitHub, please refer to:

Posted by Devin at March 19, 2016 - 10:18 PM

Has been resolved, Thank you very much LS comrades

Posted by Pearl at March 27, 2016 - 11:04 PM

Hey, faint, I also encountered this problem, why do we need include ('polls.urls', namespace=" polls"). Even more exasperating is the official document was not mentioned. Take a detour for a long time.

Posted by Harrison at April 09, 2016 - 11:52 PM

The official document does not mention, can only say that you didn't watch carefully. Anyway, the usage of include and I just look at the official document theory

Posted by Abelard at April 17, 2016 - 12:28 AM

Then, the problem is how to solve?

Posted by Abelard at April 21, 2016 - 1:12 AM

Adding namespace in the include function.

Posted by Harrison at January 07, 2017 - 6:38 PM

As your code is not and the official tutorial?

Posted by Abelard at January 09, 2017 - 5:13 PM

I mean LZ ah, I see he is completely tutorial on code.. So I do not know where the wrong

Posted by Abelard at January 13, 2017 - 5:50 PM