List Info

Thread: AUTH_PROFILE_MODULE usable with v0.96?




AUTH_PROFILE_MODULE usable with v0.96?
country flaguser name
United States
2007-11-07 05:46:04
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-t
ips-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-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )