How to display images on html page from python/jinja
问题 I have created the class Blog in model.py and in that it has an attribute photo which is a BlobkeyProperty . My problem is how to diplay that photo on html page.. all I am getting is just key.I do not know much of Jinja and python so please help.. :) {% if blog.photo == None %} <img src="static/css/img/photo.jpg" /><br/> {% elif blog.photo %} <span>{{blog.photo.key.get()}}</span><br/> {% endif %} the first part is working but the else part is now giving me Internal Server Error(UndefinedError