On 17/06/2012 5:16am, Satvir Toor wrote:
I want to upload a image through django forms.I created a class and
that file-upload element is visible into the browser.It makes me
enable to choose the file.
How to handle that image???
Can anybody explain what would be whole procedure to upload a image
and the display that image into my Another form.

1. Include the image in your other form <img href="{{MEDIA_URL}}somedir/image.png">

2. ensure your upload mechanism in the first form puts the uploaded image in the right place

You will find the uploaded image somewhere in your MEDIA_ROOT directory tree

https://docs.djangoproject.com/en/dev/ref/models/fields/#imagefield



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to