Hi,
You need to put this in your template:
<img src="{{ object.photo.url }}">
You must make sure that settings MEDIA_ROOT and MEDIA_URL are set correctly.
Regards,
Antonis
Antonis Christofides http://djangodeployment.com
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/71d39500-4e57-4220-bdd0-dd2900b7e499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ebced5a4-1274-f268-3b67-02ea5f82d2ae%40djangodeployment.com.
Okk. I will like to know how to set the MEDIA_ROOT and MEDIA_URL.?And then, my images are uploaded to a directory named 'img' inside my static files directory. Does it affect how you set the MEDIA_ROOT and MEDIA_URL?