[snowy] Update local_settings.py.in to the new multidb database config
- From: Jeff Schroeder <jschroeder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snowy] Update local_settings.py.in to the new multidb database config
- Date: Fri, 7 Oct 2011 04:13:42 +0000 (UTC)
commit 02cd3a37e42419213c1fe1e9cc0a121ff7534228
Author: Jeff Schroeder <jeffschroeder computer org>
Date: Thu Oct 6 21:12:58 2011 -0700
Update local_settings.py.in to the new multidb database config
More work in the "make snowy work on django 1.3" task
local_settings.py.in | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/local_settings.py.in b/local_settings.py.in
index 32c83a7..5d1ab8b 100644
--- a/local_settings.py.in
+++ b/local_settings.py.in
@@ -1,16 +1,25 @@
-# Local Django settings for snowy project.
+import os
+# Local Django settings for snowy project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
-DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = 'snowy.db' # Or path to database file if using sqlite3.
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(os.path.dirname(__file__), "snowy.db"),
+# '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.
+ }
+}
# Fill in this information from
# http://recaptcha.net/api/getkey?app=snowy
-RECAPTCHA_ENABLED = False
-RECAPTCHA_PUBLIC_KEY = ''
-RECAPTCHA_PRIVATE_KEY = ''
+#RECAPTCHA_ENABLED = False
+#RECAPTCHA_PUBLIC_KEY = ''
+#RECAPTCHA_PRIVATE_KEY = ''
EMAIL_PORT = 1025
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]