]> git.ozlabs.org Git - patchwork/blob - lib/apache2/patchwork.wsgi
Move to a more recent django project structure
[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 import django.core.handlers.wsgi
18 application = django.core.handlers.wsgi.WSGIHandler()