Hey there,

I've been playing around with app-engine-patch for Django on AE, and
I've been pretty happy with it so far. But I've run into a bit of bump
on the road.

As per the Django documentation, I'm trying to create a User like so:

from django.contrib.auth.models import User

...

user = User.objects.create_user('john', 'len...@thebeatles.com',
'johnpassword')

I'm doing this in the context of a custom form that I'm using for user
registration..I'm over-riding it's save function, and need to create
the user therein.

Problem is, I get this error:

AttributeError: type object 'User' has no attribute 'objects'

I'm probably doing something silly, I'm a bit of a python AND django
newbie

Can anyone shed some light? Thanks for much for any help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to