src/ldtplatform/django_wsgi.py
author ymh <ymh.work@gmail.com>
Wed, 16 Sep 2015 22:55:07 +0200
changeset 284 333d065289f1
parent 240 53931ed55bc9
permissions -rw-r--r--
upgrade ldt after correct group test in admin user creation form
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)