On May 11, 7:10 am, ravi krishna <ravi.9...@gmail.com> wrote:
> Hi,
> I am a beginner in Django .
> Can somebody tel me how to display an image in django...
> if anyone has the right tutorial for beginners, please share with me..
> --
> Regards,
> Rav!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

Are you uploading the image with ImageField?  If so, the ImageField
attribute in your model will have image related data that you will be
able to access in a template: 
http://docs.djangoproject.com/en/dev/topics/files/#topics-files.

Also, you can always just insert an image directly in your template.
Something like: <img src="{{ MEDIA_URL }}images/foo.jpg" alt="Bar" />

If you are really green and just need a place to get started, I would
recommend the intro tutorial: 
http://docs.djangoproject.com/en/1.1/intro/tutorial01/#intro-tutorial01

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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