src/ldtplatform/django_wsgi.py
author durandn
Thu, 28 May 2015 18:33:43 +0200
changeset 261 ad6a491e365c
parent 240 53931ed55bc9
permissions -rw-r--r--
Updated haystack and guardian + removed old/unused lib from virtualenv/res/src
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)