I am trying to serve a svg map using:
If you're serving the SVG dynamically from a regular django view, you can specify the mimetype in the HTTPResponse object you return from that view. In this case, you'll want the mimetype in place for both dev and production use:
def myview(request):
svg_data = generate_some_svg_data()
return HttpResponse(svg_data, mimetype="image/svg+xml")