You can always return a container object with the values you want as it's instance variables
Στις 05 Ιουλ 2013 12:39 ΜΜ, ο χρήστης "Hélio Miranda" <helio...@gmail.com> έγραψε: Hi My doubt is that I am not getting an image and its caption. I'll explain, I have my application to enter the picture and the caption GridFS on mongo. I get the image and returns or fetch the caption and just return everything ok. But I wanted to return the picture and the caption together ... Is it possible? The code I'm doing is: *def view (request, id):* * mongoengine.fields.GridFSProxy = fs ()* * fs.get picture = (id = ObjectId (id))* * caption = foto.legend* * * * return HttpResponse (foto.read (), content_type = 'image / jpeg')* Now how can I return the legend in return too? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.