Skip to content

MEDIA_ROOT env param is hard-coded #1454

@trungtt198x

Description

@trungtt198x

Describe the bug
Because the cfg-web hard-codes the MEDIA_ROOT to /app/src/media in file src\config\settings.py, so any settings of MEDIA_ROOT (in container_env_files\cfg.env of safe-infrastructure) make no sense.

Expected behavior
MEDIA_ROOT needs to be respected especially If DEFAULT_FILE_STORAGE (in container_env_files\cfg.env of safe-infrastructure) is set to django.core.files.storage.FileSystemStorage.

Environment (please complete the following information):
Staging and production

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions