From d636cb34a3b13ea3e6b776e951e6276a94d968c6 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sun, 24 May 2015 17:50:33 +0800 Subject: Update documentation and default settings to suit patchwork deployment model We've always allowed configuration without altering any of the version-controlled files. With the recent settings changes, we have an extra level of indirection with the dev/prod settings modules. Since we have to edit a config file anyway, this change moves the prod.py settings file to a template, which is then used directly by mange.py (and the wsgi application). Signed-off-by: Jeremy Kerr --- lib/apache2/patchwork.wsgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/apache2/patchwork.wsgi b/lib/apache2/patchwork.wsgi index 02d581d..efa870b 100644 --- a/lib/apache2/patchwork.wsgi +++ b/lib/apache2/patchwork.wsgi @@ -13,7 +13,7 @@ basedir = os.path.join( os.path.dirname(__file__), os.path.pardir, os.path.pardir) sys.path.append(basedir) -os.environ['DJANGO_SETTINGS_MODULE'] = 'patchwork.settings.prod' +os.environ['DJANGO_SETTINGS_MODULE'] = 'patchwork.settings.production' from django.core.wsgi import get_wsgi_application application = get_wsgi_application() -- cgit v1.2.3