Autosave: 20260208-181510
This commit is contained in:
parent
f4761157f9
commit
4c2a5f7938
Binary file not shown.
@ -169,9 +169,12 @@ MEDIA_ROOT = BASE_DIR / 'media'
|
|||||||
STATICFILES_DIRS = [
|
STATICFILES_DIRS = [
|
||||||
BASE_DIR / 'static',
|
BASE_DIR / 'static',
|
||||||
BASE_DIR / 'assets',
|
BASE_DIR / 'assets',
|
||||||
BASE_DIR / 'node_modules',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Only include node_modules if it exists to avoid warnings/errors
|
||||||
|
if (BASE_DIR / 'node_modules').exists():
|
||||||
|
STATICFILES_DIRS.append(BASE_DIR / 'node_modules')
|
||||||
|
|
||||||
# Email
|
# Email
|
||||||
EMAIL_BACKEND = os.getenv(
|
EMAIL_BACKEND = os.getenv(
|
||||||
"EMAIL_BACKEND",
|
"EMAIL_BACKEND",
|
||||||
@ -212,4 +215,4 @@ try:
|
|||||||
# Use CompressedStaticFilesStorage instead of Manifest to avoid build crashes on missing files
|
# Use CompressedStaticFilesStorage instead of Manifest to avoid build crashes on missing files
|
||||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user