id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 20162,Document `static.serve()` limitation concerning missing system wide mimetypes.,Julien Phalip,Julien Phalip,"There's a bug in Python 2.6 where the mimetypes module returns the wrong value for SVG files: {{{#!python Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 >>> import mimetypes >>> mimetypes.guess_type('blah.svg') (None, None) }}} This is fixed in Python 2.7: {{{#!python Python 2.7.2 (default, Mar 2 2012, 16:57:52) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.45)] on darwin >>> import mimetypes >>> mimetypes.guess_type('blah.svg') ('image/svg+xml', None) }}} Django's `static.serve()` view should be made smarter to always return `image/svg+xml` regardless of the Python version.",Cleanup/optimization,closed,Documentation,dev,Normal,fixed,,,Accepted,0,0,0,0,0,0