added django_wsgi for running with uwsgi V02.08
authorymh <ymh.work@gmail.com>
Fri, 20 Apr 2012 17:43:17 +0200
changeset 179 ee344d7e66d7
parent 178 06c2d97de5dc
child 180 15a29793870f
added django_wsgi for running with uwsgi
web/hdabo/django_wsgi.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/hdabo/django_wsgi.py	Fri Apr 20 17:43:17 2012 +0200
@@ -0,0 +1,9 @@
+import os
+
+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)