Arquivos estáticos (staticfiles), STATIC_URL, STATICFILES_DIRS e load static

This commit is contained in:
Luiz Otávio
2023-04-21 09:14:54 -03:00
parent 33b24dfe03
commit dc90353228
4 changed files with 12 additions and 1 deletions

View File

@@ -120,6 +120,9 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = 'static/'
STATICFILES_DIRS = [
BASE_DIR / 'base' / 'static'
]
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field