Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (27 sloc) 1.003 kb
c0afd02 @alfredo Added wsgi file
alfredo authored
1 import os
2 import site
4281c32 @alfredo Path changing on the server
alfredo authored
3 import sys
c0afd02 @alfredo Added wsgi file
alfredo authored
4
5 os.environ['CELERY_LOADER'] = 'django'
6 # Add the app dir to the python path so we can import manage.
7 wsgidir = os.path.dirname(__file__)
4281c32 @alfredo Path changing on the server
alfredo authored
8
b0cf0b6 @alfredo Amended wsgi file to load the directories directly
alfredo authored
9 path = lambda *x: os.path.join(os.path.dirname(
10 os.path.realpath(__file__)), '..', *x)
11
12 site.addsitedir(path('.'))
13 site.addsitedir(path('..'))
2bbcc2a @alfredo Amended wsgi middleweare
alfredo authored
14
c0afd02 @alfredo Added wsgi file
alfredo authored
15 # manage adds /apps, /lib, and /vendor to the Python path.
16
b0cf0b6 @alfredo Amended wsgi file to load the directories directly
alfredo authored
17 # replicated from manage.py
18
19 # Adjust the python path and put local packages in front.
20 prev_sys_path = list(sys.path)
21 site.addsitedir(path('apps'))
22 site.addsitedir(path('lib'))
23
24 # Local (project) vendor library
25 site.addsitedir(path('vendor-local'))
26 site.addsitedir(path('vendor-local/lib/python'))
27
28 # Global (upstream) vendor library
29 site.addsitedir(path('vendor'))
30 site.addsitedir(path('vendor/lib/python'))
31
32 os.environ['DJANGO_SETTINGS_MODULE'] = 'ignite_phase2.settings_local'
0890773 @alfredo Removed extra statements
alfredo authored
33 os.environ['DJANGO_SITE'] = 'ignite'
c0afd02 @alfredo Added wsgi file
alfredo authored
34
35 import django.core.handlers.wsgi
36 application = django.core.handlers.wsgi.WSGIHandler()
37
38 # vim: ft=python
Something went wrong with that request. Please try again.