mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Add override functionality to database url via FRANKENRIGS_DATABASE_URL
This commit is contained in:
@@ -104,6 +104,9 @@ DATABASES = {
|
|||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
|
|
||||||
|
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()
|
DATABASES['default'] = dj_database_url.config()
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
|
|||||||
Reference in New Issue
Block a user