Skip to content

Commit

Permalink
fix: not found error while loading file from media storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal committed Sep 5, 2022
1 parent 22962d9 commit d1ce9c9
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 d1ce9c9

Please sign in to comment.