i hope it works config for nginx media files

This commit is contained in:
Parsa Nazer
2025-01-27 18:46:54 +03:30
parent 7a0478dcde
commit 283ff74be3
4 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -167,11 +167,11 @@ USE_I18N = True
USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "staticfiles"
MEDIA_URL = '/shop_media/'
MEDIA_ROOT = '/app/media'
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'media'
STATIC_URL = '/shop_static/'
STATIC_ROOT = '/app/static'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),