Django flatpages raising 404 when DEBUG is False (404 and 500 templates exist)
Posted
by Adam
on Stack Overflow
See other posts from Stack Overflow
or by Adam
Published on 2010-02-27T19:01:37Z
Indexed on
2010/05/12
11:34 UTC
Read the original article
Hit count: 1279
django
|django-flatpages
I'm using Django 1.1.1 stable. When DEBUG
is set to True
Django flatpages works correctly; when DEBUG
is False
every flatpage I try to access raises a custom 404 error (my error template is obviously working correctly).
Searching around on the internet suggests creating 404 and 500 templates which I have done.
I've added to FlatpageFallBackMiddleware
to middleware_classes and flatpages is added to installed applications. Any ideas how I can make flatpages work?
© Stack Overflow or respective owner