On May 4, 10:28 am, Ronghui Yu <[email protected]> wrote: > Hi,All, > > I am going to use Flatpages app for those simple pages. And everything > works fine when settings.DEBUG is True, but when it is turned to False, > a URL not configured in urlpatterns will trigger 500, not 404.
Do you have a 404.html error template? You need to have that before flatpages will work when DEBUG is False. See the note titled "Ensure that your 404 template works" in this section: http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/#module-django.contrib.flatpages Its also a good idea to have a 500.html error template. Best, BN --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

