Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
638 B

  1. # Set this to the same path you used in settings.py, or None for auto-detection.
  2. MUMBLE_DJANGO_ROOT = None;
  3. ### DO NOT CHANGE ANYTHING BELOW THIS LINE ###
  4. import os, sys
  5. from os.path import join, dirname, abspath, exists
  6. # Path auto-detection
  7. if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ):
  8. MUMBLE_DJANGO_ROOT = dirname(abspath(__file__));
  9. # environment variables
  10. sys.path.append( MUMBLE_DJANGO_ROOT )
  11. sys.path.append( join( MUMBLE_DJANGO_ROOT, 'pyweb' ) )
  12. os.environ['DJANGO_SETTINGS_MODULE'] = 'pyweb.settings'
  13. # WSGI handler
  14. import django.core.handlers.wsgi
  15. application = django.core.handlers.wsgi.WSGIHandler()