]> git.ozlabs.org Git - patchwork/blob - lib/apache2/patchwork.wsgi
02d581d0e948c04b27748594ffcea69036aa91de
[patchwork] / lib / apache2 / patchwork.wsgi
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # Apache2 WSGI handler for patchwork
5 #
6 # Copyright © 2010 martin f. krafft <madduck@madduck.net>
7 # Released under the GNU General Public License v2 or later.
8 #
9 import os
10 import sys
11
12 basedir = os.path.join(
13     os.path.dirname(__file__), os.path.pardir, os.path.pardir)
14 sys.path.append(basedir)
15
16 os.environ['DJANGO_SETTINGS_MODULE'] = 'patchwork.settings.prod'
17
18 from django.core.wsgi import get_wsgi_application
19 application = get_wsgi_application()