two independent Django sites, one user - share User objects

12 views
Skip to first unread message

Markus Gattol

unread,
Sep 12, 2011, 7:38:22 AM9/12/11
to django...@googlegroups.com
Say I have n (e.g. three) independent Django sites and one user. Rather than having n times a password/username I'd like to share this across all n sites. Also a users profile [0] and so forth. Now assume I don't want to use OpenID, how would I be able to have User objects in sync across n Django sites? Maybe using ZeroMQ and have each Django site listen to some actions on other Django sites and then replay whatever action takes place on all Django sites?


Donald Stufft

unread,
Sep 12, 2011, 7:53:43 AM9/12/11
to django...@googlegroups.com
You could pick one site to be your canonical site, and add it as a second db to the first, and then use a custom authentication backend to auth against that site, then create a local user with the same password hash.

On Monday, September 12, 2011 at 7:38 AM, Markus Gattol wrote:

Say I have n (e.g. three) independent Django sites and one user. Rather than having n times a password/username I'd like to share this across all n sites. Also a users profile [0] and so forth. Now assume I don't want to use OpenID, how would I be able to have User objects in sync across n Django sites? Maybe using ZeroMQ and have each Django site listen to some actions on other Django sites and then replay whatever action takes place on all Django sites?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/8wLFTRFTbG4J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages