On 3/6/07, samira <[EMAIL PROTECTED]> wrote:
>
> Thanks, but I read it before, I add
> photo = models.ImageField('/images')in my models classes and
You should read the document carefully, and you should set upload_to parameter.
> newData = request.POST.copy()
> new_data.update(request.FILES) in views, Also for display it in
> template I add this line to it.
>
> <form id="signupForm" name="signupForm" method="POST" action=""
> enctype="multipart/form-data">
> {{ form.photo }}{{ form.photo_file }}
> but nothing display in my template :-s do you know what is ths
> problem? shall I write any code in manipulator or not?
>
And if you want to use image in template, you really used is the url
of the image, and there is a default get_FOO_url() function to return
the url of a file or image. You can find more details in db_api
document.
http://www.djangoproject.com/documentation/db_api/
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---