Wednesday, January 2, 2013

Re: When I set DEBUG=False, my 404.html doesn't appear

Thank you while I've solve the problem. It's because some browsers show their own 404 page if the size of the 404 page server returns less than 512 bytes.
So just uncheck the "show friendly error page" in Interner Option in Control Panel, my 404 page will appear.

在 2012年12月29日星期六UTC+8下午11时59分11秒,Dae_James写道:
I put my 404.html into root of the directory specified in TEMPLATE_DIRS. However, when I visit an inexisting page, the browser's 404.html appears rather than my own 404.html page.
What's wrong with me ?
PS: I've set the DEBUG variable in settings.py to False.
 

Dae James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/-15XMk7i_YwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment