diff --git a/restoran_max_bot/restoran_max_bot/settings.py b/restoran_max_bot/restoran_max_bot/settings.py index 698ea3e..ff8f8a1 100644 --- a/restoran_max_bot/restoran_max_bot/settings.py +++ b/restoran_max_bot/restoran_max_bot/settings.py @@ -144,6 +144,10 @@ STATIC_URL = 'static/' # Дополнительные директории для поиска статических файлов STATICFILES_DIRS = [(os.path.join(BASE_DIR, "static"))] +# Media files (user-uploaded and dynamically generated content) +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') +MEDIA_URL = '/media/' + # Default primary key field type # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field