File: django.wsgi

package info (click to toggle)
horizon 2014.1.3-7+deb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 19,132 kB
  • ctags: 13,935
  • sloc: python: 55,902; sh: 540; makefile: 182; xml: 8
file content (16 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import logging
import os
import sys
from django.core.wsgi import get_wsgi_application
from django.conf import settings

# Add this file path to sys.path in order to import settings
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr

sys.path.append("/usr/share/openstack-dashboard/")

DEBUG = False

application = get_wsgi_application()