Re: Showing images in Django Admin

2007-04-08 Thread oggie rob
On Apr 8, 1:10 am, "oliver" <[EMAIL PROTECTED]> wrote: > Hi Rob, > would you mind posting the code you wrote as an example? Would be very > helpful. > > thank! > oli I posted my first djangosnippet to show it: http://www.djangosnippets.org/snippets/162/ HTH, -rob

Re: Showing images in Django Admin

2007-04-08 Thread oliver
Hi Rob, would you mind posting the code you wrote as an example? Would be very helpful. thank! oli On Apr 4, 5:26 pm, "oggie rob" <[EMAIL PROTECTED]> wrote: > For a list display, it can be very simple. Write a method within the > model that returns an "img" html tag, and use the "allow_tags" >

Re: Showing images in Django Admin

2007-04-04 Thread oggie rob
For a list display, it can be very simple. Write a method within the model that returns an "img" html tag, and use the "allow_tags" decorator on that method (just like you would for short_description). Then add that method to your list_display variable in Admin. I did this for thumbnails. I

Re: Showing images in Django Admin

2007-04-04 Thread Edwin W
The django filebrowser admin extension may be close to what you're looking for, it will display thumbnails of images on a filesystem being browsed. I'm not sure how it integrates with the models though, haven't tried it myself. You'll need PIL as pointed out on the website.

Showing images in Django Admin

2007-04-04 Thread brian corrigan
Hi all, I have a django model and want to include an image field. Is there a way of displaying this field in the admin templates as an image (not the string path of the image) or do I have to write my own template for that? Cheers Brian --~--~-~--~~~---~--~~