Friday, April 19, 2013

Re: Upload Image

Grr i accidentally pressed enter before finishing the message....

Since its in the database it is not available in your filesystem or for immediate display.
to check if its there

./manage.py shell

import yourmodel as Document

print Document.objects.all()

i would suggest researching pythons module StringIO  and the ability to write files.
Try writing the image to a file.

Finally, when you get all of that working, if you want to display images, research static file urls. like youpage.com/static/images/image_1.jpeg


On Friday, April 19, 2013 3:21:02 PM UTC-4, Hélio Miranda wrote:
Gives no error
But do not know where to send the image and sends
Do not put the picture in the ...
Does anything in the settings? Or have a folder in the wrong place? My folder structure is right?

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment