I'm using django-filebrowser (http://code.google.com/p/django-filebrowser/
) to upload and manage files within my project.
And it's working great! Filebrowser is a great app.
The only problem I'm having is this:
I coupled filebrowser with on of my models ('News') and use the
FileBrowse-Field for this
(http://code.google.com/p/django-filebrowser/wiki/installationfilebrowsefield
),
and I like filebrowsers' image generator and want to use it.
But how can I access the generated images from the template?
Say I have the template variable 'news_report' in my template and want
to display the image, I would write
<img src="{{ news_report.image }}" />
That would give me the original image, not the processed one.
The url for the original image is something like
'/media/uploads/news/DSC04678.JPG',
and the url to the processed version would be something like
'/media/uploads/news/dsc04678_jpg_versions/cropped_DSC04678.JPG'
Is there a way to access the url to the processed image from the
template?
Benjamin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---