|
@@ -31,14 +31,14 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
SECRET_KEY = 'django-insecure-^9*3@g$5brgjmhv&h!h*)c9kp)8i5tnqee_eu+fi728@g96#8&'
|
|
SECRET_KEY = 'django-insecure-^9*3@g$5brgjmhv&h!h*)c9kp)8i5tnqee_eu+fi728@g96#8&'
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
-DEBUG = True
|
|
|
|
|
-
|
|
|
|
|
DEBUG = os.environ.get('DEBUG', 'False') == 'True'
|
|
DEBUG = os.environ.get('DEBUG', 'False') == 'True'
|
|
|
OPENSHIFT = os.environ.get('OPENSHIFT', 'False') == 'True'
|
|
OPENSHIFT = os.environ.get('OPENSHIFT', 'False') == 'True'
|
|
|
LOCAL = os.environ.get('LOCAL', 'False') == 'True'
|
|
LOCAL = os.environ.get('LOCAL', 'False') == 'True'
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", ".reymota.es", ".reymota.lab", "127.0.0.1", "localhost"]
|
|
ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", ".reymota.es", ".reymota.lab", "127.0.0.1", "localhost"]
|
|
|
|
|
|
|
|
|
|
+CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "https://*.reymota.es", "http://*.rancher.reymota.lab"]
|
|
|
|
|
+
|
|
|
|
|
|
|
|
# Application definition
|
|
# Application definition
|
|
|
|
|
|
|
@@ -110,10 +110,6 @@ else:
|
|
|
'default': {
|
|
'default': {
|
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
|
"NAME": BASE_DIR / "db.sqlite3",
|
|
"NAME": BASE_DIR / "db.sqlite3",
|
|
|
- "USER": "creylopez",
|
|
|
|
|
- "PASSWORD": "Dsa-0213",
|
|
|
|
|
- "HOST": "postgresql",
|
|
|
|
|
- "PORT": "5432",
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -176,8 +172,6 @@ LOGOUT_REDIRECT_URL = 'dashboard'
|
|
|
|
|
|
|
|
AUTH_USER_MODEL = "reymotausers.ReyMotaUser"
|
|
AUTH_USER_MODEL = "reymotausers.ReyMotaUser"
|
|
|
|
|
|
|
|
-CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "https://*.reymota.es", "http://*.rancher.reymota.lab"]
|
|
|
|
|
-
|
|
|
|
|
LOGGING = {
|
|
LOGGING = {
|
|
|
'version': 1,
|
|
'version': 1,
|
|
|
'disable_existing_loggers': False,
|
|
'disable_existing_loggers': False,
|