Selaa lähdekoodia

Añado whitenoise a requirements

Celestino Rey 1 vuosi sitten
vanhempi
sitoutus
fb6f7d26b3

+ 1 - 1
gestion_reservas/gestion_reservas/settings.py

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

+ 1 - 0
gestion_reservas/requirements.txt

@@ -13,3 +13,4 @@ typing_extensions==4.12.2
 django-calculation==1.0.0
 djangorestframework==3.15.2
 Markdown==3.7
+whitenoise==5.2.0