What do I do when I open a Web page 404 error?

Source: Internet
Author: User

What do I do when I open a Web page 404 error?

The purpose of the 404 page is to tell the viewer that the requested page does not exist or link incorrectly, and that the user is directed to use other pages of the site instead of closing the window to leave.

Next, let's look at how to resolve the 404 error.

If we enter a non-existent URL (but the IP address is correct), you will see an error 404 page, that is, the page is not found, this time the error message will tell you the path exists in the site, tell you can access the URL style: admin and hello, if we want the website official online, You must hide this information, then you need to turn off debug mode, which is a specific procedure:

1, we open the folder where the site, my site is placed under the Djangoweb folder.

2, use Edle edit settings.py file.

3. Locate Debug and set it to false.

4, then open a nonexistent URL, there will be no error prompts.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.