1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 import os
2 import sys
3
4 os.environ['DJANGO_SETTINGS_MODULE'] = 'YOURAPP.settings'
5
6 project=os.path.dirname(__file__)
7 app=os.path.dirname(project)
8
9 sys.path.append(project)
10 sys.path.append(app)
11
12 from YOURAPP import settings
13
14 import django.core.handlers.wsgi
15 application = django.core.handlers.wsgi.WSGIHandler()
|
More like this
- Python fixup handler for Apache by ofalk 3 years, 11 months ago
- Load local settings by ofalk 3 years, 11 months ago
- Setting distinction between development and public server by Archatas 6 years, 2 months ago
- FirstRun Middleware by TheMysteriousX 2 years ago
- Integrating Django with ToofPy by Siddhi 5 years, 10 months ago
Comments