Problem solved: I've confirmed for myself that AUTH_MODULE_PROFILE
does indeed work with Django v0.96




On Nov 7, 11:46 am, paulc <[EMAIL PROTECTED]> wrote:
> I'm trying to follow the example in the Django book, to make a simple
> extension of the standard User object.
>
> I'm hoping someone may be able to give me a quick yes or no on this:
> is the AUTH_PROFILE_MODULE setting expected to work with Django 0.96,
> or do I need to upgrade to the SVN release?
>
> Within a very simple view that I'm using just to try this out, I can
> pick up the User object and access some of its fields (e.g. username)
> and custom methods (e.g. is_authenticated);  but if I call the
> get_profile() method, I see the following error:
>
> Exception Type:         AttributeError
> Exception Value:        'NoneType' object has no attribute
> '_default_manager'
>
> I'm pretty sure I have AUTH_PROFILE_MODULE set correctly (I do not get
> the `too many values to unpack' error).
>
> I do not see the SiteProfileNotAvailable error, which again seems to
> suggest I have all the necessary middleware and settings present in
> the configuration.
>
> Also, I test the User object's is_authenticated attribute, and confirm
> that returns true; as expected, is_anonymous returns false.   That
> seems to rule out the possibility that I'm dealing with an
> AnonymousUser object.
>
> Also, I found and read the Django tips article re. extending the user
> model (http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-
> user-model/), but still can't see that I'm doing anything wrong in the
> code or settings.
>
> Any feedback much appreciated.
>
> - Paul


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to