1👍
✅
Try render_to_response(template_name, kwargs)
. Render to response takes an actual dictionary as its argument, so you can reuse the dictionary kwargs
. **kwargs
unpacks the dictionary unto keyword style arguments, so it is no longer a dictionary.
Source:stackexchange.com