Attachment 'wsgi.py'
Download 1 """
2 WSGI config for HyperKitty project.
3
4 It exposes the WSGI callable as a module-level variable named ``application``.
5
6 For more information on this file, see
7 https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/wsgi/
8 """
9
10 import os
11
12 # import sys
13 # import site
14
15 # For some unknown reason, sometimes mod_wsgi fails to set the python paths to
16 # the virtualenv, with the 'python-path' option. You can do it here too.
17 #
18 # # Remember original sys.path.
19 # prev_sys_path = list(sys.path)
20 # # Add here, for the settings module
21 # site.addsitedir(os.path.abspath(os.path.dirname(__file__)))
22 # # Add the virtualenv
23 # venv = os.path.join(os.path.abspath(os.path.dirname(__file__)),
24 # '..', 'lib', 'python2.6', 'site-packages')
25 # site.addsitedir(venv)
26 # # Reorder sys.path so new directories at the front.
27 # new_sys_path = []
28 # for item in list(sys.path):
29 # if item not in prev_sys_path:
30 # new_sys_path.append(item)
31 # sys.path.remove(item)
32 # sys.path[:0] = new_sys_path
33
34 from django.core.wsgi import get_wsgi_application
35
36 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
37
38 application = get_wsgi_application()
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.