From: jordan Date: Mon, 22 Aug 2011 14:06:26 +0000 (+0000) Subject: add support for gunicorn, this will allow the usage of the run_gunicorn management... X-Git-Tag: live~154 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/c7f85a5704a2da33748f04e0447b681652318ac4 add support for gunicorn, this will allow the usage of the run_gunicorn management command and will have the settings import issues resolved git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1163 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/settings.py b/settings.py index f42268b..a1044e5 100644 --- a/settings.py +++ b/settings.py @@ -123,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