On 13/12/2011 5:25am, cmc wrote:
write_info = "name: %s\n caption: %s\n source: %s\n more_info:
%s\n\n" % photo.name, caption, source, more_info
and I've always had to put parentheses around the values on the right
hand side of the % like this ...
write_info = "name: %s\n caption: %
On 12-12-11 19:25, cmc wrote:
I am trying to use django to upload images but its not working as
expected. Here is what I'm working with
Ehm, you're not telling us what goes wrong or unexpected :-)
There's one thing that I see in your code that might be a problem:
#handle_uploaded_image.py
I am trying to use django to upload images but its not working as
expected. Here is what I'm working with
#handle_uploaded_image.py
def handle_uploaded_image(photo, caption, source, more_info):
photo_dir = '%s/uploaded_photos/Not_Published/%Y/%m/%d' %
settings.MEDIA_ROOT
photo
3 matches
Mail list logo