On Sat, Jun 13, 2009 at 7:24 PM, Michael<newmani...@gmail.com> wrote: > On Sat, Jun 13, 2009 at 1:30 PM, josebrwn <joseb...@gmail.com> wrote: >> >> If Debug = True, you can have a flatpage with URL = "/" that is >> handled by FlatpageFallbackMiddleware: >> >> MIDDLEWARE_CLASSES = ( >> ... >> 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', >> ) >> >> If Debug = False, the flatpage will 404. Is there a way to have a >> flatpage as your site's index/home page, and have debugging turned >> off? > > I do this all the time. It works the same not-depending on the DEBUG > setting. It should work. > Do you have 500.html and 404.html templates in your template directory? That > is the only thing that I can think that would behave differently here. > How is it not working? A little more specifics will help us out greatly, > Michael
I have this issues as well, and I have a 404 and 500 html file in my template directory. I still get a internal server error (not my 500 error page) when I turn debug off and have a flatpage url set to /. It works as long as debugging is on and since the two sites I use a flat pages as the home page get less then 500 hits a month I just leave it on --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---