django framework 404 error page not found

33 Views Asked by At

I'm getting this error:

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in sitaram.urls, Django tried these URL patterns, in this order:

members/ [name='members']
admin/
The empty path didn’t match any of these.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

How can I fix it?

1

There are 1 best solutions below

0
willeM_ Van Onsem On

Well the error is quite clear, you try to access http://127.0.0.1:8000/, but there is no path in your urls.py that matches this. You can visit http://127.0.0.1:8000/members/, or http://127.0.0.1:8000/admin/ given these point to views and are not just includes, but you can not point to the root directly, since you did not define such path.