From c77a1b78988fd3e8e92b52110ca14eb33f530e14 Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Thu, 19 Jul 2012 22:58:18 +0530 Subject: Added production.cfg file with postgresql settings and changed the setting files accordingly --- stapp/production.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'stapp/production.py') diff --git a/stapp/production.py b/stapp/production.py index 238f678..f902bd6 100644 --- a/stapp/production.py +++ b/stapp/production.py @@ -1,2 +1,15 @@ - from stapp.settings import * +DEBUG=False +TEMPLATE_DEBUG=DEBUG$ + + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'stapp', # Or path to database file if using sqlite3. + 'USER': 'stapp', # Not used with sqlite3. + 'PASSWORD': 'pp@ssw0rd', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} -- cgit