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.

29 lines
959 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. # If you get an error about Python not being able to write to the Python
  14. # egg cache, the egg cache path might be set awkwardly. This should not
  15. # happen under normal circumstances, but every now and then, it does.
  16. # Uncomment this line to point the egg cache to /tmp.
  17. #os.environ['PYTHON_EGG_CACHE'] = '/tmp/pyeggs'
  18. # WSGI handler
  19. from django.core.wsgi import get_wsgi_application
  20. application = get_wsgi_application()