API Docs: clarify usage of Subscription API
[mygpo.git] / mygpo.wsgi
blobb07db2923c85e67da0e272ef0cf883342f04bbca
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 # my.gpodder.org FastCGI handler for lighttpd (default setup)
5 # This file is part of my.gpodder.org.
7 # my.gpodder.org is free software: you can redistribute it and/or modify it
8 # under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or (at your
10 # option) any later version.
12 # my.gpodder.org is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
15 # License for more details.
17 # You should have received a copy of the GNU Affero General Public License
18 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
21 import sys
22 import os
24 import _strptime
26 # Add this directory as custom Python path
27 mygpo_root = os.path.dirname(os.path.abspath(__file__))
28 sys.path.insert(0, mygpo_root)
29 sys.path.insert(0, os.path.join(mygpo_root, 'lib'))
31 # Set the DJANGO_SETTINGS_MODULE environment variable
32 os.environ['DJANGO_SETTINGS_MODULE'] = 'mygpo.settings'
34 import django.core.handlers.wsgi
35 application = django.core.handlers.wsgi.WSGIHandler()