Save shelves for each book during reimport.
[wolnelektury.git] / wolnelektury.fcgi
1 #!/usr/bin/python
2 import sys
3 import os
4 from os import path
5
6 # Add project directories to PYTHONPATH
7 PROJECT_DIR = path.abspath(path.dirname(__file__))
8 PROJECT_MODULE_DIRS = [PROJECT_DIR + '/lib', PROJECT_DIR + '/apps', PROJECT_DIR + '/wolnelektury']
9
10 sys.path = PROJECT_MODULE_DIRS + sys.path
11
12 # Set the DJANGO_SETTINGS_MODULE environment variable.
13 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_eo'
14
15 from django.core.servers.fastcgi import runfastcgi
16 runfastcgi(method='threaded', daemonize='false')
17