Thanks Jason for sharing this one. cheers, james
On Jul 18, 9:07 pm, [EMAIL PROTECTED] (Jason F. McBrayer) wrote: > james_027 <[EMAIL PROTECTED]> writes: > > what if I need additional fields or methods for my apps? Do i inherit > > it or edit the user class? > > The standard approach is > here:http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model > > However, also have a look at this > approach:http://groups.google.com/group/django-developers/browse_thread/thread... > > It does require writing a context processor and a middleware, but they > are very small and simple, and they greatly simplify the use of your > user object in your views and templates. > > -- > +-----------------------------------------------------------+ > | Jason F. McBrayer [EMAIL PROTECTED] | > | If someone conquers a thousand times a thousand others in | > | battle, and someone else conquers himself, the latter one | > | is the greatest of all conquerors. --- The Dhammapada | --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---