L
L
lazyvasya2282020-10-14 10:50:49
Django
lazyvasya228, 2020-10-14 10:50:49

Error publishing site. What's wrong?

I published the site through the command line, inserted the link and got this error. Please explain what I did wrong. Thank you in advance!

Page not found (404)

Request Method: GET
Request URL: 127.0.0.1:8000

Using the URLconf defined in MyFirstProject.urls, Django tried these URL patterns, in this order:

1. admin/
2. about/
3. home/
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.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-10-14
@alexey-m-ukolov

Using the URLconf defined in MyFirstProject.urls, Django tried these URL patterns, in this order:
1. admin/
2. about/
3. home/
The empty path didn't match any of these.

The "page not found" error occurs because you don't have a page for the given url (empty path, root, /). Your K.O.
How to fix it? There is only one way - to associate this path with some action of some controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question