Have you considered creating a separate view for that particular
image? You'd have a view designed to grab that image and return it
with the proper MIME type. Then you could, in your Welcome method,
return a dynamically generated path to that URL using the reverse()
method, which you'd use in
(I'm a django n00b).
Through a database, I get the raw contents of an image and the image's
mimetype:
def Welcome(request):
(mime, blob) = d.GetMedia()
...
return shortcuts.render_to_response('welcome.html', { 'msg' :
'Welcome!', 'logo' : blob }) # Line 3
Now clearly, this (Line 3)
2 matches
Mail list logo