]> git.openstreetmap.org Git - osqa.git/commitdiff
add support for gunicorn, this will allow the usage of the run_gunicorn management...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 22 Aug 2011 14:06:26 +0000 (14:06 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 22 Aug 2011 14:06:26 +0000 (14:06 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1163 0cfe37f9-358a-4d5e-be75-b63607b5c754

settings.py

index f42268b6accfb6700c2fcaa0cbf40e6647ecfb6b..a1044e559319e6300d72ffeb2fbf51028efa509c 100644 (file)
@@ -123,6 +123,13 @@ try:
 except:
     pass
 
 except:
     pass
 
+# Try loading Gunicorn web server
+try:
+    import gunicorn
+    INSTALLED_APPS.append('gunicorn')
+except ImportError:
+    pass
+
 if not DEBUG:
     try:
         import rosetta
 if not DEBUG:
     try:
         import rosetta