Serve external template in Django
Posted
by AlexeyMK
on Stack Overflow
See other posts from Stack Overflow
or by AlexeyMK
Published on 2010-06-13T04:18:55Z
Indexed on
2010/06/13
4:22 UTC
Read the original article
Hit count: 289
Hey, I want to do something like
return render_to_response("http://docs.google.com/View?id=bla", args)
and serve an external page with django arguments. Django doesn't like this (it looks for templates in very particular places).
What's the easiest way make this work? Right now I'm thinking to use urllib to save the page to somewhere locally on my server and then serve with the templates pointing to there.
Note: I'm not looking for anything particularly scalable here, I realize my proposal above is a little dirty.
© Stack Overflow or respective owner