Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added back in the flatpage views.

I'd removed them a few commits ago by accident.
  • Loading branch information...
commit de3aa986f097f10cf9ef3dd418a12a4099d150e6 1 parent 18fce3d
@jacobian jacobian authored
Showing with 5 additions and 1 deletion.
  1. +0 −1  django_website/settings/www.py
  2. +5 −0 django_website/urls/www.py
View
1  django_website/settings/www.py
@@ -82,7 +82,6 @@
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware',
- #'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
]
if PRODUCTION:
View
5 django_website/urls/www.py
@@ -66,3 +66,8 @@
"document_root": settings.MEDIA_ROOT,
}),
)
+
+# flatpages need to be last b/c they match anything
+urlpatterns += patterns('',
+ (r'', include('django.contrib.flatpages.urls')),
+)
Please sign in to comment.
Something went wrong with that request. Please try again.