add uwsgi bootstrap V01.50
authorymh <ymh.work@gmail.com>
Sun, 11 Mar 2012 22:59:56 +0100
changeset 143 60759aa76cd7
parent 142 8411d69b3ad9
child 144 07b820858226
add uwsgi bootstrap
web/hdalab/django_wsgi.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/hdalab/django_wsgi.py	Sun Mar 11 22:59:56 2012 +0100
@@ -0,0 +1,11 @@
+import os
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'hdalab.settings'
+ 
+import django.core.handlers.wsgi
+
+application = django.core.handlers.wsgi.WSGIHandler()
+
+if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
+    import pydevd #@UnresolvedImport
+    pydevd.settrace(suspend=False)