equal
deleted
inserted
replaced
11 that later delegates to the Django one. For example, you could introduce WSGI |
11 that later delegates to the Django one. For example, you could introduce WSGI |
12 middleware here, or combine a Django application with an application of another |
12 middleware here, or combine a Django application with an application of another |
13 framework. |
13 framework. |
14 |
14 |
15 """ |
15 """ |
16 import os |
16 import sys,os |
17 |
17 |
18 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ldtplatform.settings") |
18 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ldtplatform.settings") |
|
19 |
|
20 sys.path.append(os.environ['PROJECT_PATH']) |
|
21 for path in os.environ.get('PYTHON_PATH',"").split(os.pathsep): |
|
22 if path: |
|
23 site.addsitedir(path) |
|
24 |
19 |
25 |
20 # This application object is used by any WSGI server configured to use this |
26 # This application object is used by any WSGI server configured to use this |
21 # file. This includes Django's development server, if the WSGI_APPLICATION |
27 # file. This includes Django's development server, if the WSGI_APPLICATION |
22 # setting points here. |
28 # setting points here. |
23 from django.core.wsgi import get_wsgi_application |
29 from django.core.wsgi import get_wsgi_application |