1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Added USE_FLAT_PAGES setting, which defaults to True.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-10-05 23:36:17 +00:00
parent 16f9b08611
commit c3fa47edb8
2 changed files with 19 additions and 18 deletions

View File

@@ -100,6 +100,9 @@ ALLOWED_INCLUDE_ROOTS = ()
# is an admin.
ADMIN_FOR = []
# Whether to check the flat-pages table as a last resort for all 404 errors.
USE_FLAT_PAGES = True
# 404s that may be ignored.
IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')