Ver código fonte

Cosas que sobraban. Creo

Celestino Rey 1 ano atrás
pai
commit
488001d392
2 arquivos alterados com 4 adições e 8 exclusões
  1. 2 0
      entrypoint.sh
  2. 2 8
      src/misfinanzas/settings.py

+ 2 - 0
entrypoint.sh

@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# Este es para K8S
+
 if [ "$DATABASE" = "postgres" ]
 then
     echo "Waiting for postgres..."

+ 2 - 8
src/misfinanzas/settings.py

@@ -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&'
 
 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
-
 DEBUG = os.environ.get('DEBUG', 'False') == 'True'
 OPENSHIFT = os.environ.get('OPENSHIFT', 'False') == 'True'
 LOCAL = os.environ.get('LOCAL', 'False') == 'True'
 
 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
 
@@ -110,10 +110,6 @@ else:
         'default': {
             "ENGINE": "django.db.backends.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"
 
-CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "https://*.reymota.es", "http://*.rancher.reymota.lab"]
-
 LOGGING = {
     'version': 1,
     'disable_existing_loggers': False,