Skip to content

Commit

Permalink
Merge pull request #238 from edly-io/ziafazal/fix-media-file-404
Browse files Browse the repository at this point in the history
fix: not found error while loading file from media storage
  • Loading branch information
kdmccormick authored Sep 12, 2022
2 parents 6300faf + d1ce9c9 commit f1f5e17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions workbench/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Provide XBlock urls"""



from django.urls import re_path
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import re_path

from workbench import views

Expand Down Expand Up @@ -65,3 +66,5 @@
]

urlpatterns += staticfiles_urlpatterns()

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit f1f5e17

Please sign in to comment.