Is there a simple example anywhere for how to save data that is
specific to an individual user, and how to access that data in a view?
For example if each user owns a list of books, what does the BookList
model look like exactly and what are the lines of code in the view
that would set and read an item in the BookList for an individual
user?

I believe a great many apps need to do this, so It seems to me this
should be under "Basic Usage" in the authentication doc but it is
not.   The doc also doesn't say which field in User is the primary
key.

Furthermore I need extra information added to the User model
(geographical location) and I don't know whether to a) subclass the
User model, or b) create a new model and Foreign Key to User, or c)
use Profiles.  And I don't know how this choice would affect the
answer to my first question.
An example of whichever of these is preferred (or all 3) would be
great.

Thanks
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to