Re: problem in uploading image

2007-10-16 Thread mayank bhargava
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

problem in uploading image

2007-10-15 Thread mayank bhargava
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

problem in uploading image

2007-10-12 Thread mayank bhargava
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'))

USE HTML

2007-09-23 Thread mayank bhargava
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

QUERY

2007-09-23 Thread mayank bhargava
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