User-uploaded files should be served from /media/
In order to serve user-uploaded files in templates, I think we should add a MEDIA_URL
and update our project's urlpatterns
. That way, we won't have to duplicate any files into static
(and keep the static files actually static!)
Something to keep in mind when we start displaying user-uploaded PDFs in the scanner app. And it would require a change to the test spec creator's thumbnail rendering.
It would require some additional steps for setting up our production server - here's a good blog post about it: https://testdriven.io/blog/django-static-files/
Edited by Edith Coates