Skip to content

Commit

Permalink
add MEDIA_URL and MEDIA_ROOT to settings.py
Browse files Browse the repository at this point in the history
issue: #943
Signed-off-by: Ndibe Raymond Olisaemeka <[email protected]>
  • Loading branch information
Ndibe Raymond Olisaemeka committed Dec 31, 2023
1 parent ad585bb commit b7f6da2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zubhub_backend/zubhub/zubhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'), ]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

MEDIA_URL = '/api/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

STATICFILES_FINDER = [
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder"
Expand Down

0 comments on commit b7f6da2

Please sign in to comment.