src/ldtplatform/django_wsgi.py
author ymh <ymh.work@gmail.com>
Thu, 10 Sep 2015 12:08:43 +0200
changeset 277 eec63f85b38d
parent 240 53931ed55bc9
permissions -rw-r--r--
Added tag V02.17.02 for changeset 9ec483bbb444
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import os
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
os.environ['DJANGO_SETTINGS_MODULE'] = 'ldtplatform.settings'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
 
240
53931ed55bc9 Upgrade to django 1.7: migrations + wsgi init change
durandn
parents: 0
diff changeset
     5
from django.core.wsgi import get_wsgi_application
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
240
53931ed55bc9 Upgrade to django 1.7: migrations + wsgi init change
durandn
parents: 0
diff changeset
     7
application = get_wsgi_application()
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    import pydevd #@UnresolvedImport
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    pydevd.settrace(suspend=False)