10f09018e0a3877f056ad01eb7f1100ace41d558
[redakcja.git] / redakcja / wsgi.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 import os.path
7 import sys
8
9 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
10
11 # Add apps and lib directories to PYTHONPATH
12 sys.path = [
13     ROOT,
14     os.path.join(ROOT, 'apps'),
15     os.path.join(ROOT, 'lib'),
16     os.path.join(ROOT, 'lib/librarian'),
17 ] + sys.path
18
19
20 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "redakcja.localsettings")
21
22 # This application object is used by the development server
23 # as well as any WSGI server configured to use this file.
24 from django.core.wsgi import get_wsgi_application
25 application = get_wsgi_application()