Commit b4bf9318 authored by Aatish Neupane's avatar Aatish Neupane

configurable database backend

parent 081e1140
DEBUG=True DEBUG=True
DISABLE_IPV4_BLOCK=False DISABLE_IPV4_BLOCK=False
DATABASE_BACKEND='django.db.backends.postgresql'
DATABASE_NAME='app'
ALLOWED_HOSTS=.localhost, .ipv6.work ALLOWED_HOSTS=.localhost, .ipv6.work
AUTH_LDAP_SERVER_URI=ldap://<ldap_host> AUTH_LDAP_SERVER_URI=ldap://<ldap_host>
AUTH_LDAP_BIND_DN=cn=admin,dc=example,dc=com AUTH_LDAP_BIND_DN=cn=admin,dc=example,dc=com
......
...@@ -102,8 +102,8 @@ WSGI_APPLICATION = 'ipv6work.wsgi.application' ...@@ -102,8 +102,8 @@ WSGI_APPLICATION = 'ipv6work.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': config('DATABASE_BACKEND', default='django.db.backends.sqlite3'),
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': config('DATABASE_NAME', default=os.path.join(BASE_DIR, 'db.sqlite3')),
} }
} }
......
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