I'm trying to figure out how to set the RESOURCE_TYPE based file extension in Django, but I'm not sure if my solution is correct.
I'm basically overriding the _get_resource_type method, which seems to work well for uploading images and videos based on file extension, but when I try to access my files, the images show, but the videos don't. The url seems to still say /image/ instead of /video/
Any ideas on how I can fix that?
Thank you very much!
Post is closed for comments.