Add DrugBank credentials
This commit is contained in:
parent
af5f44b89a
commit
0249b66be7
|
@ -4,10 +4,10 @@ trues = ("t", "true", "yes", "y", "1")
|
||||||
|
|
||||||
# URLs
|
# URLs
|
||||||
DOMAIN = getenv("DOMAIN", "example.com")
|
DOMAIN = getenv("DOMAIN", "example.com")
|
||||||
URL = getenv("URL", f"https://{DOMAIN}")
|
URL = getenv("URL", f"https://{DOMAIN}") # noqa: E231
|
||||||
|
|
||||||
# Access control
|
# Access control
|
||||||
ALLOWED_HOSTS = getenv("ALLOWED_HOSTS", f"127.0.0.1,{DOMAIN}").split(",")
|
ALLOWED_HOSTS = getenv("ALLOWED_HOSTS", f"127.0.0.1,{DOMAIN}").split(",") # noqa: E231
|
||||||
|
|
||||||
# CSRF
|
# CSRF
|
||||||
CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS", URL).split(",")
|
CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS", URL).split(",")
|
||||||
|
@ -36,6 +36,9 @@ LAGO_URL = getenv("LAGO_URL", "")
|
||||||
DEBUG = getenv("DEBUG", "false") in trues
|
DEBUG = getenv("DEBUG", "false") in trues
|
||||||
PROFILER = getenv("PROFILER", "false") in trues
|
PROFILER = getenv("PROFILER", "false") in trues
|
||||||
|
|
||||||
|
DRUGBANK_USERNAME = getenv("DRUGBANK_USERNAME", "")
|
||||||
|
DRUGBANK_PASSWORD = getenv("DRUGBANK_PASSWORD", "")
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
import socket # only if you haven't already imported this
|
import socket # only if you haven't already imported this
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue