]> git.openstreetmap.org Git - osqa.git/blobdiff - settings.py
OSQA-766, smart_encode the item titles for the question RSS feeds
[osqa.git] / settings.py
index 041f6ae286661c8b17afed686f4df556a44972aa..a1044e559319e6300d72ffeb2fbf51028efa509c 100644 (file)
@@ -25,6 +25,7 @@ MIDDLEWARE_CLASSES = [
     'forum.middleware.request_utils.RequestUtils',
     'forum.middleware.cancel.CancelActionMiddleware',
     'forum.middleware.admin_messages.AdminMessagesMiddleware',
+    'forum.middleware.custom_pages.CustomPagesFallbackMiddleware',
     'django.middleware.transaction.TransactionMiddleware',
     'forum.middleware.django_cookies.CookiePostHandlerMiddleware',
 ]
@@ -122,6 +123,13 @@ try:
 except:
     pass
 
+# Try loading Gunicorn web server
+try:
+    import gunicorn
+    INSTALLED_APPS.append('gunicorn')
+except ImportError:
+    pass
+
 if not DEBUG:
     try:
         import rosetta