title: Get the file path for a static file in django code
body: <p>I have a django application that sends off an email containing image files as MIME attachments. The emails are sent from views.py, but in order to attach the files, I need to get the full path name of the image(s), so python can open them. These files are in the static folder in my app, but I can't seem to find a way that I can get the full path of the file on the filesystem <em>that works in development mode</em> - It works fine in production after collecting static, but in dev, it can't find the file as the static files are served from individual app folders in development.</p>