Saturday, December 29, 2012

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

All I can suggest is to double-check the TEMPLATE_DIRS tuple to ensure the path is correct.

On 29/12/2012, at 7:59 AM, "Dae James" <daedae11@126.com> wrote:

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 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