Sobre os arquivos estáticos, DEBUG e ALLOWED_HOSTS

This commit is contained in:
Luiz Otávio
2023-04-27 13:51:25 -03:00
parent 070466ad19
commit 8a9fdecb25
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ __localcode
chromedriver
mysql_206
.env
aula207_ola_django/static_files
# Byte-compiled / optimized / DLL files
__pycache__/

View File

@@ -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