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-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|