On Thu, May 3, 2012 at 10:54 AM, James Hargreaves
<james.hargrea...@gmail.com> wrote:
> Hello,
>
> I have created a website using Django CMS:
>
> http://www.trailer-traders.co.uk
>
> When I visit a URL on this site that does not exist in Django CMS I get a
> 500 error - eg:
>
> http://www.trailer-traders.co.uk/xxx
>
> I was expecting a 404 error. Before you say it I don't think this is caused
> by Django CMS since if I set DEBUG = TRUE in settings.py I get a page not
> found (404) error as expected. I have the following static files in my
> template directory:
>
> lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 403.html -> error.html
> lrwxrwxrwx 1 jay www-data   10 May  3 09:24 404.html -> error.html
> lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 500.html -> error.html
> -rw-r----- 1 jay www-data  863 Apr 11 20:53 error.html
>
>
> The contents of error.html file is output with the 500 error, which implies
> that the 500.html symbolic link is working. Why is the 404.html file being
> ignored? I have tried replacing the symbolic link with a static file but to
> no avail.
>
> Unfortunately I don't have logging enabled for this site - I'm going to
> rectify that ASAP but in the meantime can anyone point me in the right
> direction?
>
> Thanks
> James
>

Showing the contents of the error email that Django sends to
settings.ADMINS when settings.DEBUG is false would be a start.
Typically you will get a 500 error instead of a 404 when your 404
template causes an error to occur during rendering.

I would very much doubt that symlinks would affect this at all.

Cheers

Tom

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to