summaryrefslogtreecommitdiff
path: root/coip
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-06-13 16:37:59 +0200
committerLeif Johansson <leifj@sunet.se>2011-06-13 16:37:59 +0200
commit70aa706dd2977a386f6662c3f32615e600edecdd (patch)
tree9529b76c35b7d1ab3238772b3458e309020a3480 /coip
parent27cb934a9ed31e02c07b0ffdda58c13508426dba (diff)
un-deprecate
Diffstat (limited to 'coip')
-rw-r--r--coip/settings.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/coip/settings.py b/coip/settings.py
index 8a62c0c..a473562 100644
--- a/coip/settings.py
+++ b/coip/settings.py
@@ -11,12 +11,17 @@ ADMINS = (
BASE_DIR = "."
MANAGERS = ADMINS
-DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = '%s/sqlite.db' % BASE_DIR # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
+
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME': '%s/db/sqlite.db' % BASE_DIR, # 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.
+ }
+}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name