try to correct config template
authorymh <ymh.work@gmail.com>
Fri, 16 Nov 2012 02:04:17 +0100
changeset 58 265e12141bba
parent 57 9b6862d8591b
child 59 d58d795a3258
try to correct config template
src/hp/config.py.tmpl
--- a/src/hp/config.py.tmpl	Fri Nov 16 01:58:12 2012 +0100
+++ b/src/hp/config.py.tmpl	Fri Nov 16 02:04:17 2012 +0100
@@ -8,12 +8,12 @@
 
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': '',                      # Or path to database file if using sqlite3.
-        'USER': '',                      # Not used with sqlite3.
-        'PASSWORD': '',                  # 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.
+        'ENGINE': 'django.db.backends.%(db_engine)s', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+        'NAME': '%(db_name)s',                      # Or path to database file if using sqlite3.
+        'USER': '%(db_user)s',                      # Not used with sqlite3.
+        'PASSWORD': '%(db_password)s',                  # Not used with sqlite3.
+        'HOST': '%(db_host)s',                      # Set to empty string for localhost. Not used with sqlite3.
+        'PORT': '%(db_port)d',                      # Set to empty string for default. Not used with sqlite3.
     }
 }