Update static settings for production
This commit is contained in:
parent
8eca12ce11
commit
e481301fa4
1 changed files with 9 additions and 0 deletions
|
@ -118,6 +118,15 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
|
||||
if DEBUG:
|
||||
STATICFILES_DIRS = [
|
||||
BASE_DIR / 'static',
|
||||
]
|
||||
else:
|
||||
STATIC_ROOT = BASE_DIR / 'static'
|
||||
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
BASE_DIR / 'static',
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue