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.

32 lines
1.1 KiB

  1. # FastCGI handler script for mumble-django, donated by Anon in Ticket #21 at:
  2. # <http://bitbucket.org/Svedrin/mumble-django/issue/21/fcgi-script-missing>
  3. # Set this to the same path you used in settings.py, or None for auto-detection.
  4. MUMBLE_DJANGO_ROOT = None;
  5. ### DO NOT CHANGE ANYTHING BELOW THIS LINE ###
  6. import os, sys
  7. from os.path import join, dirname, abspath, exists
  8. # Path auto-detection
  9. if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ):
  10. MUMBLE_DJANGO_ROOT = dirname(abspath(__file__));
  11. # environment variables
  12. sys.path.append( MUMBLE_DJANGO_ROOT )
  13. sys.path.append( join( MUMBLE_DJANGO_ROOT, 'pyweb' ) )
  14. os.environ['DJANGO_SETTINGS_MODULE'] = 'pyweb.settings'
  15. # If you get an error about Python not being able to write to the Python
  16. # egg cache, the egg cache path might be set awkwardly. This should not
  17. # happen under normal circumstances, but every now and then, it does.
  18. # Uncomment this line to point the egg cache to /tmp.
  19. #os.environ['PYTHON_EGG_CACHE'] = '/tmp/pyeggs'
  20. # FCGI handler
  21. from django.core.servers.fastcgi import runfastcgi
  22. runfastcgi(method="threaded", daemonize="false")