Browse Source

Gestion des fichiers statiques dans settings

main
scayac 6 months ago
parent
commit
30b7e995f8
  1. 2
      ia_prof/settings.py

2
ia_prof/settings.py

@ -101,6 +101,8 @@ USE_TZ = True @@ -101,6 +101,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.x/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'main', 'templates', 'static')] if os.path.exists(os.path.join(BASE_DIR, 'main', 'templates', 'static')) else []
# Default primary key field type
# https://docs.djangoproject.com/en/4.x/ref/settings/#default-auto-field

Loading…
Cancel
Save