equal
deleted
inserted
replaced
|
1 # -*- coding: utf-8 -*- |
1 """ |
2 """ |
2 WSGI config for p4l project. |
3 WSGI config for p4l project. |
3 |
4 |
4 This module contains the WSGI application used by Django's development server |
5 This module contains the WSGI application used by Django's development server |
5 and any production WSGI deployments. It should expose a module-level variable |
6 and any production WSGI deployments. It should expose a module-level variable |
11 that later delegates to the Django one. For example, you could introduce WSGI |
12 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 |
13 middleware here, or combine a Django application with an application of another |
13 framework. |
14 framework. |
14 |
15 |
15 """ |
16 """ |
|
17 |
16 import os |
18 import os |
17 |
19 |
18 # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks |
20 # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks |
19 # if running multiple sites in the same mod_wsgi process. To fix this, use |
21 # if running multiple sites in the same mod_wsgi process. To fix this, use |
20 # mod_wsgi daemon mode with each site in its own daemon process, or use |
22 # mod_wsgi daemon mode with each site in its own daemon process, or use |