31 lines
647 B
Python
31 lines
647 B
Python
from socket import gethostname
|
|
from socket import gethostbyname_ex
|
|
|
|
from .base import *
|
|
|
|
|
|
ALLOWED_HOSTS = [
|
|
gethostname(),
|
|
] + list(set(gethostbyname_ex(gethostname())[2]))
|
|
|
|
CSRF_TRUSTED_ORIGINS = [
|
|
"http://localhost:8080",
|
|
]
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
|
|
|
|
DEBUG = os.environ.get("DJANGO_DEBUG")
|
|
CRISPY_FAIL_SILENTLY = not DEBUG
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql",
|
|
"NAME": "postgres",
|
|
"USER": "postgres",
|
|
"HOST": "db",
|
|
"PORT": 5432,
|
|
"PASSWORD": "password",
|
|
}
|
|
}
|