Skip to content

Commit

Permalink
Added back in the flatpage views.
Browse files Browse the repository at this point in the history
I'd removed them a few commits ago by accident.
  • Loading branch information
jacobian committed Sep 11, 2011
1 parent 18fce3d commit de3aa98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion django_website/settings/www.py
Expand Up @@ -82,7 +82,6 @@
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
#'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
] ]
if PRODUCTION: if PRODUCTION:
Expand Down
5 changes: 5 additions & 0 deletions django_website/urls/www.py
Expand Up @@ -66,3 +66,8 @@
"document_root": settings.MEDIA_ROOT, "document_root": settings.MEDIA_ROOT,
}), }),
) )

# flatpages need to be last b/c they match anything
urlpatterns += patterns('',
(r'', include('django.contrib.flatpages.urls')),
)

0 comments on commit de3aa98

Please sign in to comment.