Django 1.5 Support

https://docs.djangoproject.com/en/1.5/topics/http/shortcuts/
The document says that:
content_type
    Changed in Django 1.5: This parameter used to be called mimetype.

To support that check the django version and select correct parameter name.