photo_file'
On Oct 15, 12:48 pm, mayank bhargava <[EMAIL PROTECTED]> wrote:
> hello ..
> i am using this code to insertimageinto DataBase
> new_data = request.POST.copy()
> new_data.update(request.FILES)
> profile_form = Things(None, name, new_data['photo
hello ..
i am using this code to insert image into DataBase
new_data = request.POST.copy()
new_data.update(request.FILES)
profile_form = Things(None, name, new_data['photo'])
profile_form.save()
and it is working properly
now i want to copy the content of this image on
class Thing(models.Model):
name = models.CharField(blank=False, null=False, maxlength=30)
photo = models.ImageField(upload_to='images/things/', blank=True,
null=True)
class ThingForm(forms.Form):
name = forms.CharField(max_length=30, required=True, label=_('Name
of the thing'))
How to use html or how to create dunamic html pages with django ?
best regards
mayank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
when i type : >>>from django.template import Template
on command prompt
it is showing :
Traceback (most recent call last):
File "", line 1, in
File "c:\python25\Lib\site-packages\django\template\__init__.py",
line 918, in
add_to_builtins('django.template.defaultfilters')
File
5 matches
Mail list logo