restructure file layout
[ochimeru.git] / server.fcgi
blob644924729a74e2886e997219b1c406c8f575cec2
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 import sys
5 import os
7 # Add this directory as custom Python path
8 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
10 # Set the DJANGO_SETTINGS_MODULE environment variable
11 os.environ['DJANGO_SETTINGS_MODULE'] = 'ochimeru.settings'
13 # Start the FastCGI server for this application
14 from django.core.servers.fastcgi import runfastcgi
15 runfastcgi(method='threaded', daemonize='false')