Browse files

updated django_settings.py to be compatible with newer versions of dj…

…ango as well
  • Loading branch information...
1 parent 26e1c0e commit 06bc57ba97d788358b5df74f3cd2e2f1f10f2ecd @bfly2000 bfly2000 committed Jun 11, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 conceptnet/django_settings/__init__.py
View
12 conceptnet/django_settings/__init__.py
@@ -75,6 +75,18 @@ def relative_to_db_config(path):
DATABASE_PORT = get_db_config('PORT', '') # Set to empty string for default. Not used with sqlite3.
DATABASE_OPTIONS = get_db_config('OPTIONS', {})
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.'+DATABASE_ENGINE,
+ 'NAME': DATABASE_NAME,
+ 'USER': DATABASE_USER,
+ 'PASSWORD': DATABASE_PASSWORD,
+ 'HOST': DATABASE_HOST,
+ 'PORT': DATABASE_PORT,
+ 'OPTIONS': DATABASE_OPTIONS
+ }
+}
+
# Local time zone for this installation. All choices can be found here:
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'America/New_York'

0 comments on commit 06bc57b

Please sign in to comment.