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.
> useracco
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 exceptio
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
3 matches
Mail list logo