Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助,怎么关闭网页404的debug显示,不显示错误信息,只显示404界面。 #361

Closed
liujinye213 opened this issue Mar 15, 2017 · 2 comments

Comments

@liujinye213
Copy link

现在网页会显示debug信息,应该是Django的bebug是开启的,求助怎么关闭?

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.

@liujinye213 liujinye213 changed the title 求助,怎么关闭网页404的debug显示,显示错误信息,显示404界面。 求助,怎么关闭网页404的debug显示,不显示错误信息,只显示404界面。 Mar 15, 2017
@ibuler
Copy link
Member

ibuler commented Oct 8, 2017

关闭debug模式,但这时需要nginx来作为web服务器,负责静态文件响应

@ibuler ibuler closed this as completed Oct 8, 2017
@yang-sheep
Copy link

yang-sheep commented May 4, 2018

求问在哪里关闭debug信息,小白找不到,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants