Browse Source

Cambio ruta a los staticfiles

main
Celestino Rey 10 months ago
parent
commit
97dcdeae62
2 changed files with 2 additions and 7 deletions
  1. +0
    -6
      gestion_reservas/entornoPruebas.sh
  2. +2
    -1
      gestion_reservas/gestion_reservas/settings.py

+ 0
- 6
gestion_reservas/entornoPruebas.sh View File

@ -1,6 +0,0 @@
export CSRF_TRUSTED_ORIGINS="http://localhost"
export DEBUG="True"
export SECRET_KEY="hola"
export DJANGO_ALLOWED_HOSTS="vmcluster localhost"

+ 2
- 1
gestion_reservas/gestion_reservas/settings.py View File

@ -133,7 +133,8 @@ THOUSAND_SEPARATOR = '.'
# https://docs.djangoproject.com/en/5.1/howto/static-files/ # https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "staticfiles"
#STATIC_ROOT = BASE_DIR / "staticfiles"
STATIC_ROOT = BASE_DIR / "wsgi/static"
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field


Loading…
Cancel
Save