Skip to content

Commit

Permalink
hotfix: create MEDIAR_ROOT directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Feb 26, 2024
1 parent ba13c1c commit 8cc9009
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openIMIS/openIMIS/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ def SITE_URL():
MEDIA_URL = "/file_storage/"
MEDIA_ROOT = os.path.join(BASE_DIR, "file_storage/")

if not os.path.exists(MEDIA_ROOT):
os.makedirs(MEDIA_ROOT)

STORAGES = {
"default": {
"class": "core.filesystem.storage.FileSystemStorage",
Expand Down

0 comments on commit 8cc9009

Please sign in to comment.