This might be the most often asked question on this mailing list.
I'm pretty sure the code is perfectly fine, but you missed a little
step in the tutorial.
The third line of the error message is saying you opened http://127.0.0.1:8000/
The "Write your first view" chapter finish with "Go to
http://localhost:8000/polls/ "
That's why you get an error.
2017-03-26 17:30 GMT+02:00 Melvyn Sopacua <m.r.sopacua@gmail.com>:
> 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
>
> --
> 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/7352927.CGXvrrnOJ1%40devstation.
>
> For more options, visit https://groups.google.com/d/optout.
--
Cordialement, Coues Ludovic
+336 148 743 42
--
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/CAEuG%2BTa_K2Se1EO03EoxSSY2YdpDqGkJ9D5UF6h2wYBJwmiFzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment