Added book_text view and template to repository.
[wolnelektury.git] / wolnelektury.wsgi
1 import sys
2 import os
3 from os import path
4
5 # Add project directories to PYTHONPATH
6 PROJECT_DIR = path.abspath(path.dirname(__file__))
7 PROJECT_MODULE_DIRS = [PROJECT_DIR + '/lib', PROJECT_DIR + '/apps', PROJECT_DIR + '/wolnelektury']
8
9 sys.path = PROJECT_MODULE_DIRS + sys.path
10
11
12 # Run Django
13 from django.core.handlers.wsgi import WSGIHandler
14
15 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
16 application = WSGIHandler()