I need something like file_get_contents in PHP. I kwnow it's some like:
import urllib2
urllib2.urlopen(url).read()
but how can I put it in django html template?
Thx for fast answers.
I need something like file_get_contents in PHP. I kwnow it's some like:
import urllib2
urllib2.urlopen(url).read()
but how can I put it in django html template?
Thx for fast answers.
You cannot put that directly into django's html templating language. You might consider: