views:

106

answers:

1

How can I have different users for different sites with django. My application should look like this:

a.mydomain.com
b.otherdomain.com

Users should be bound to the domain, so that a.mydomain.com and b.otherdomain.com have different users.

+1  A: 

In the auth setup, you could create separate custom permissions, one per domain, and check if the current user has the permission for the current domain -- see the "custom permissions" section in the auth doc in question.

Alex Martelli