diff --git a/.gitignore b/.gitignore index 29de9ce..d639fa6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __localcode chromedriver mysql_206 .env +aula207_ola_django/static_files # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/aula207_ola_django/project/settings.py b/aula207_ola_django/project/settings.py index 79ee056..04009f6 100644 --- a/aula207_ola_django/project/settings.py +++ b/aula207_ola_django/project/settings.py @@ -123,6 +123,8 @@ STATIC_URL = 'static/' STATICFILES_DIRS = [ BASE_DIR / 'base' / 'static' ] +# https://whitenoise.readthedocs.io/en/latest/ +STATIC_ROOT = BASE_DIR / 'static_files' # Default primary key field type # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field