Sunday, March 26, 2017

Re: Django tutorial HTTP Error 404

On Sunday 26 March 2017 07:41:06 Paweł Balawender wrote:

 

> I'm a Django newbie on Windows and try to follow its official tutorial

> <https://docs.djangoproject.com/en/1.10/intro/tutorial01/>. I've done

> everything - as I think - completely fine

 

Almost. You're told to test runserver *before* creating the app. This is because the "it worked" page is a little magic that depends on DEBUG=True and only the admin urlpatterns registered.

 

As soon as you add more urls the magic stops working and since you did not define a homepage url, it is a genuine 404.

 

--

Melvyn Sopacua

No comments:

Post a Comment