mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Add override functionality to database url via FRANKENRIGS_DATABASE_URL
This commit is contained in:
@@ -104,7 +104,10 @@ DATABASES = {
|
|||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
|
|
||||||
DATABASES['default'] = dj_database_url.config()
|
if env("FRANKENRIGS_DATABASE_URL") is not None:
|
||||||
|
DATABASES['default'] = dj_database_url.config(env="FRANKENRIGS_DATABASE_URL")
|
||||||
|
else:
|
||||||
|
DATABASES['default'] = dj_database_url.config()
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
|
|||||||
Reference in New Issue
Block a user