1

I have created multiple sites, that has user identification like here:

How to get unique users across multiple Django sites powered by the "sites" framework?

But, how to make user unique for every website where he registered ?

For example:

Arti at domain.com

Arti at domain2.com

It's two different users, but create another Arti at domain.com impossible, and i'll get an error: "User is already exist".

Community
  • 1
  • 1
Arti
  • 7,356
  • 12
  • 57
  • 122
  • 1
    Same thing, just use an extended User model that has a foreign key to `sites` and make both `site_id` and `username` "unique_together". – Paulo Scardine Jan 27 '15 at 15:47

0 Answers0