On 5/8/07, gsmith <[EMAIL PROTECTED]> wrote: > by using the following html '<img src="{{ thetabinfo.image }}"'. > However, this contains the string 'c:/django/site_media/image.jpg'.
Use <img src="{{ thetabinfo.get_image_url }}" /> The "get_FIELDNAME_url" method will return the URL of the file relative to MEDIA_ROOT, while just printing out the field value will return the filesystem location of the file. This is covered in the documentation: http://www.djangoproject.com/documentation/db-api/#get-foo-url -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---