evennia/game/web/apache_wsgi.conf

17 lines
579 B
Text
Raw Normal View History

2009-01-30 04:16:17 +00:00
import os, sys
# Calculate the path based on the location of the WSGI script.
2009-01-30 06:35:50 +00:00
web_dir = os.path.dirname(__file__)
2009-01-30 04:16:17 +00:00
workspace = os.path.dirname(os.path.dirname(web_dir))
sys.path.insert(0, workspace)
os.environ['DJANGO_SETTINGS_MODULE'] = 'game.settings'
import django.core.handlers.wsgi
_application = django.core.handlers.wsgi.WSGIHandler()
# This handles apps mounted in places other than the root mount point
def application(environ, start_response):
environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
return _application(environ, start_response)