Search code examples
pythondjangohttp-status-code-404

page not found error on Django 3 by examples tutorial


I'm learning Django and I'm trying to get a blog application running but I keep getting the same error: page not found error

I even went to the files available in github link which are the endgoal (while slightly different) I imported the whole mysite folder, opened a virtual env, installed Django, pushed the migrations and ran the server but I still get the same error.

It seems the problem arises with both my code and with the reference code in the github files.


Solution

  • You don't target the good url.

    According to your project url showed in the error, you have admin/ and blog/

    Then try http://localhost:8000/blog instead of http://localhost:8000/