|
|
@@ -33,10 +33,10 @@ 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 = os.environ.get('DEBUG', 'False') == 'True'
|
|
|
|
|
|
-ALLOWED_HOSTS = [".reymota.es", ".reymota.lab", "127.0.0.1", "localhost", "k8s-server", ".rancher.lab",".vmcluster.lab"]
|
|
|
+ALLOWED_HOSTS = [".reymota.es", ".reymota.lab", "127.0.0.1", "localhost", "k8s-server", ".rancher.lab",".vmcluster.lab","192.168.1.202", "localhost", "127.0.0.1"]
|
|
|
|
|
|
-CSRF_TRUSTED_ORIGINS = ["https://*.reymota.es", "http://*.reymota.lab", "http://k8s-server", "http://*.rancher.lab","http://*.vmcluster.lab"]
|
|
|
|
|
|
+CSRF_TRUSTED_ORIGINS = ["https://*.reymota.es", "http://*.reymota.lab", "http://k8s-server", "http://*.rancher.lab","http://*.vmcluster.lab"]
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
@@ -64,6 +64,8 @@ MIDDLEWARE = [
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
|
+ 'whitenoise.middleware.WhiteNoiseMiddleware',
|
|
|
+
|
|
|
]
|
|
|
|
|
|
ROOT_URLCONF = 'misfinanzas.urls'
|
|
|
@@ -145,9 +147,11 @@ NUMBER_GROUPING = 3
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
# https://docs.djangoproject.com/en/5.2/howto/static-files/
|
|
|
|
|
|
-STATIC_URL = 'static/'
|
|
|
+STATIC_URL = '/static/'
|
|
|
STATIC_ROOT = BASE_DIR / "staticfiles"
|
|
|
STATICFILES_DIRS = [BASE_DIR / "static",]
|
|
|
+STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
|
|
+
|
|
|
|
|
|
# Mediafiles
|
|
|
|