Skip to content

Commit

Permalink
Merge pull request #206 from openimis/feature/CM-503
Browse files Browse the repository at this point in the history
OM-503 Added global storage
  • Loading branch information
delcroip authored Feb 9, 2024
2 parents c288a37 + fe247e8 commit c87efa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ modules-tests.sh
openIMIS/locale/en/LC_MESSAGES/django.mo
**/staticfiles
extracted_translations_fe
openIMIS/file_storage
13 changes: 13 additions & 0 deletions openIMIS/openIMIS/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,3 +484,16 @@ def SITE_URL():
'timeout': 120,
}
}

MEDIA_URL = "/file_storage/"
MEDIA_ROOT = os.path.join(BASE_DIR, "file_storage/")

STORAGES = {
"default": {
"class": "core.filesystem.storage.FileSystemStorage",
"options": {
"location": MEDIA_URL,
"base_url": MEDIA_URL
},
}
}

0 comments on commit c87efa3

Please sign in to comment.