Hi, the way it currently stands, yes you will need to write your own
function to get the information. One thing I usually do though is to
always serve media files aliased from a real server: apache/nginx etc.
This way in development I get served static files through WSGI using
Glashammer's add_shared_directory, then later use aliases to those same
directories on the same URLs. The gh-admin script has a staticaliases
command just for this purpose. It takes the app, and works out what
aliases you will need for the web server.
This way, I don't need two web servers.
Ali