diff options
| author | Magnus Hagander | 2016-01-06 15:28:25 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2016-01-06 15:28:25 +0000 |
| commit | a67145e1987e229d832215203fbb5fe1faf9ec12 (patch) | |
| tree | 96dfea5ccfec9d2d5dabed6259664b0db7447a1b /pgcommitfest | |
| parent | dc61e30ab8329093150a1eb9333b1409986a07c6 (diff) | |
Move around manage.py and create wsgi.py for django 1.8
Diffstat (limited to 'pgcommitfest')
| -rwxr-xr-x | pgcommitfest/manage.py | 14 | ||||
| -rw-r--r-- | pgcommitfest/wsgi.py | 16 |
2 files changed, 16 insertions, 14 deletions
diff --git a/pgcommitfest/manage.py b/pgcommitfest/manage.py deleted file mode 100755 index 3e4eedc..0000000 --- a/pgcommitfest/manage.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -from django.core.management import execute_manager -import imp -try: - imp.find_module('settings') # Assumed to be in the same directory. -except ImportError: - import sys - sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) - sys.exit(1) - -import settings - -if __name__ == "__main__": - execute_manager(settings) diff --git a/pgcommitfest/wsgi.py b/pgcommitfest/wsgi.py new file mode 100644 index 0000000..821a477 --- /dev/null +++ b/pgcommitfest/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for pgcommitfest project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pgcommitfest.settings") + +application = get_wsgi_application() |
