X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ff4ced0172977ed22c4debbc133c3767f4fb57ea..c7f85a5704a2da33748f04e0447b681652318ac4:/settings.py diff --git a/settings.py b/settings.py index 041f6ae..a1044e5 100644 --- a/settings.py +++ b/settings.py @@ -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