我需要类似于PHP中的file_get_contents。我觉得这有点像:
import urllib2 urllib2.urlopen(url).read()
但是我如何将它放在django html模板中呢?
快速回答。
发布于 2011-11-18 13:18:02
您不能将其直接放入django的html模板语言中。你可以考虑:
https://stackoverflow.com/questions/8182942
相似问题