Hey Ryan, Thanks for the reply :)
I'm not importing the app engine user class at all. This is what my forms file looks like, for this custom form: from django import forms from django.contrib.auth.models import User class RegistrationForm(forms.ModelForm): class Meta: model = User def save(self, new_data): u = User.objects.create_user(new_data['username'],new_data ['email'],new_data['password']) u.is_active = False u.save() return u The form is generated out of the model User, and for that, it seems to find the django user model fine - the generated form is as you'd expect for that model. I tried fully qualifying the call to User in the save function by using django.contrib.auth.models.User.objects.create_user.. but I wound up getting an error saying that " global name 'django' is not defined". I tried qualifying the name as you suggest in your post, by using from django.contrib.auth import models and then: models.User ... but this seems to cause errors elsewhere... Thanks, On Jan 20, 10:05 pm, ryan <ryanb+appeng...@google.com> wrote: > On Jan 20, 10:28 am, peterk <peter.ke...@gmail.com> wrote: > ... > > > AttributeError: type object 'User' has no attribute 'objects' > > out of curiosity, are you importing the app engine User class after > the django User class? e.g. something like: > from django.contrib.auth.models import User > ... > from appengine.api.users import User > > if so, it's using the app engine User class. try fully qualifying your > User references, e.g.: > > from django.contrib.auth import models > ... > from appengine.api import users > > ... > > user = models.User.objects.create_user('john', > 'len...@thebeatles.com', 'johnpassword') --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---