configurable database backend
This commit is contained in:
parent
081e11400b
commit
b4bf9318df
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
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'
|
||||||
|
|
||||||
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')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue