The Django site structure provides some tools for working with multiple domains, but they all assume that for each deployment you have a different SITE_ID.
That said. You can probably write middleware that checks request.META['HTTP_HOST'] and then passes this information in your opinion in any way.
At this point, you can simply follow the Django docs when using the user site manager for your models.
source share