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
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" 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
> rat
Can you post the shell output when 404 occurs along with the TEMPLATE_DIRS
part of settings.py?
On Saturday, December 29, 2012 9:29:11 PM UTC+5:30, Dae_James wrote:
>
> I put my 404.html into root of the directory specified in TEMPLATE_DIRS.
> However, when I visit an inexisting page, the brows
you need read this
https://docs.djangoproject.com/en/dev/topics/http/views/#the-404-page-not-found-view
Cheers
On Sat, Dec 29, 2012 at 12:43 PM, nimesh ghelani wrote:
> Can you post the shell output when 404 occurs along with the TEMPLATE_DIRS
> part of settings.py?
>
>
> On Saturday, December
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
5 matches
Mail list logo