Re: user.get_profile() attribute error

2008-01-12 Thread Alex Koshelev
get_profile() uses default profile model manager. So if you profile model is Profile - exception is Profile.DoesNotExist that is subclass of ObjectDoesNotExist On 13 янв, 02:45, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I had the settings.py configured with the wrong Model name. >

Re: user.get_profile() attribute error

2008-01-12 Thread [EMAIL PROTECTED]
I had the settings.py configured with the wrong Model name. useraccount instead of userprofile. Whoops. Thanks! Though the documentation might be wrong, in that DoesNotExist doesn't seem to be a real exception. ObejctDoesNotExist, as defined in django/ core/exceptions.py, is the correct

Re: user.get_profile() attribute error

2008-01-12 Thread Alex Koshelev
Do you create a profile model and set right value in settings.py file? http://www.djangoproject.com/documentation/authentication/#storing-additional-information-about-users And User.get_pofile() does not require logged in user. Note that profile instance per user you must create manually. On 13

user.get_profile() attribute error

2008-01-12 Thread [EMAIL PROTECTED]
I'm trying to catch any exceptions from user.get_profile() during account creation in order to create the profile I create the user, authenticate them, log them in, and then try to get_profile. To start out, the user name is the email and I'm setting the password to a random string newUser =