Commit d18bf9e2 authored by chris's avatar chris

mysite/common_settings: allow other databases engines, set development engine to sqlite3

parent 7bb0c082
**/__pycache__
*.pyc
venv
.sqlite
.ropeproject
......@@ -46,6 +46,7 @@ MEDIA_URL = "%s%s%s" % (os.sep, "media", os.sep)
STATIC_ROOT = os.path.join(PROJECT_DIR, "collect-static")
DJANGO_SETTINGS_SITE_NAME = os.path.split(PROJECT_DIR)[-1]
DJANGO_SETTINGS_DATABASE_ENGINE = 'django.db.backends.postgresql_psycopg2'
config = configparser.RawConfigParser(allow_no_value=True)
conf_file_name = '%s%s%s.ini' % (
......@@ -65,6 +66,7 @@ except IOError:
OPTIONS = ('DJANGO_SETTINGS_ADMIN_EMAIL',
'DJANGO_SETTINGS_ADMIN_NAME',
'DJANGO_SETTINGS_DATABASE_ENGINE',
'DJANGO_SETTINGS_DATABASE_HOST',
'DJANGO_SETTINGS_DATABASE_NAME',
'DJANGO_SETTINGS_DATABASE_PASSWORD',
......@@ -137,7 +139,7 @@ SERVER_EMAIL = "%s%s" % (DJANGO_SETTINGS_ADMIN_NAME, DJANGO_SETTINGS_ALLOWED_MAI
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'ENGINE': DJANGO_SETTINGS_DATABASE_ENGINE,
'NAME': DJANGO_SETTINGS_DATABASE_NAME, # Or path to database file if using sqlite3.
'USER': DJANGO_SETTINGS_DATABASE_USER,
'PASSWORD': DJANGO_SETTINGS_DATABASE_PASSWORD,
......
......@@ -2,8 +2,9 @@
; test settings for repanier
DJANGO_SETTINGS_ADMIN_EMAIL=admin@locahost
DJANGO_SETTINGS_ADMIN_NAME=admin
DJANGO_SETTINGS_DATABASE_ENGINE=django.db.backends.sqlite3
DJANGO_SETTINGS_DATABASE_HOST=default
DJANGO_SETTINGS_DATABASE_NAME=db.sqlite3
DJANGO_SETTINGS_DATABASE_NAME=db.sqlite
DJANGO_SETTINGS_DATABASE_PASSWORD=
DJANGO_SETTINGS_DATABASE_PORT=0
DJANGO_SETTINGS_DATABASE_USER=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment