My code:

In model:
class User(db.Model):
  user = db.UserProperty()
  avatar = db.BlobProperty()
  def __unicode__(self):
    return self.email

class UserForm(djangoforms.ModelForm):
  class Meta():
    model = User


In view:
    data = UserForm(request.POST, request.FILES)
    if data.is_valid():
      user = users.get_current_user()
      entity = data.save(commit=False)
      entity.user = users.get_current_user()
      entity.put()


But this error happen:

'NoneType' object has no attribute 'validate'


Somebody can help me?


On Fri, Feb 6, 2009 at 2:09 PM, Karen Tracey <kmtra...@gmail.com> wrote:

> On Fri, Feb 6, 2009 at 12:05 PM, Alex Gaynor <alex.gay...@gmail.com>wrote:
>
>> I'm fairly certain PIL doesn't work on Google App Engine so I think google
>> has their own image module, you should consult the GAE documentation.
>>
>
> Their own images API apparently uses PIL:
>
> http://code.google.com/appengine/docs/python/images/installingPIL.html
>
> ?
>
> Karen
>
> >
>


-- 
Atenciosamente,
Edgard Matos
E-mail: edgardma...@gmail.com
Skype: edgardmatos
Celular: 85 8837 8285

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to