]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/settings.py
Enable CSRF and Comment Moderation
[sommitrealweird.git] / sommitrealweird / settings.py
index e4d2dcccd43addd35e6552c2b6a6b05997e770aa..41f9656cc9c13e3b8376b7db0efbfb0b75a73de6 100644 (file)
@@ -51,6 +51,7 @@ MIDDLEWARE_CLASSES = (
     'django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'django.middleware.csrf.CsrfViewMiddleware',
     'django.middleware.doc.XViewMiddleware',
 )
 
@@ -67,6 +68,7 @@ INSTALLED_APPS = (
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.markup',
+    'django.contrib.comments',
     'bpcms',
     'generic',
     'blog',
@@ -82,6 +84,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     'bpcms.context_processors.content_submenu',
     'bpcms.context_processors.content_breadcrumb',
     'blog.context_processors.content_breadcrumb',
+    'blog.context_processors.blog_feed',
     'photo.context_processors.content_breadcrumb',
 )
 
@@ -89,6 +92,7 @@ APPEND_SLASH=False
 
 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
     'initial_header_level': 2,
+    'doctitle_xform': False,
 }
 
 BPCMS_ROOT = '/'
@@ -100,6 +104,7 @@ BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
 
 BLOG_ROOT = '/blog/'
 BLOG_TITLE = u'The World of SommitRealWeird.'
+BLOG_FEED_ROOT = '/feeds/blog/'
 
 try:
     from localsettings import *