You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hello
I am aware of the options to set the content_type when using TemplateResponse, but is it possible to make the response itself return json converted rendered template and not just a rendered template?
Thank you
Sebastian Henschel
unread,
Sep 17, 2012, 8:36:15 AM9/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
heya...
maybe this will work for you:
import json
return json.dumps(rendered_template)
cheers,
Sebastian
--
Sebastian Henschel, Python Developer Web
txtr GmbH | Rosenthaler Str. 13 | 10119 Berlin | Germany