On Dec 10, 1:58 pm, Nuno Machado <[EMAIL PROTECTED]> wrote:
> Hi Brian. Thank you.
>
> I've read the documents you pointed out. But the issue is not on
> 404/500 html templates, but in the DEBUG setting.

No, it isn't.

>
> I've started a project from scratch to reproduce my error. I used the
> instructions provided in the latest documentation to add FlatPages and
> an Admin application.
>
> When I add a FlatPage for my site index page (URL = /) it works fine.
>
> Then, if I change the DEBUG flag to False in my settings.py, the index
> page is replaced by a 500 error.

That's because you don't have a 404.html or 500.html template.

> I think this is a bug. If someone has the same behaviour it should be
> reported.

It isn't a bug. Read the docs. Create yourself an empty 404.html and
500.html file in your templates directory and your flatpage will work
with DEBUG=False.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to