views.generic.base.TemplateResponseMixin.response_class

response_class

The response class to be returned by render_to_response method. Default is TemplateResponse. The template and context of TemplateResponse instances can be altered later (e.g. in template response middleware).

If you need custom template loading or custom context object instantiation, create a TemplateResponse subclass and assign it to response_class.

doc_Django
2016-10-09 18:40:49
Comments
Leave a Comment

Please login to continue.