Sobre os arquivos estáticos, DEBUG e ALLOWED_HOSTS
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@ __localcode
|
||||
chromedriver
|
||||
mysql_206
|
||||
.env
|
||||
aula207_ola_django/static_files
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user