Friday, February 25, 2011

Re: Using user data from another project

On 25/02/2011 12:38, bruno desthuilliers wrote:
<snip>
> Won't work that way.
>
>> I need to set the user object in site B to get the user info (I display the username on every page amongst other data)
>>
>> Is that even possible?
>
> Yeps, using multi-db support (to share the user tables) and a custom
> auth backend (so your siteB delegates auth to SiteA) :
>
> * http://docs.djangoproject.com/en/1.2/topics/db/multi-db/
> * http://docs.djangoproject.com/en/1.2/topics/auth/#other-authentication-sources
>
> HTH

On first glance, this looks exactly what i need !
I will try and see if i get there.

Super, thanks,
Benedict


--
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 http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment