django-tenant-user: How to fix "Application labels aren't unique, duplicates: auth"

Hi guys,

I’m new to Python/Django and struggling with Django Tenants Users.

I’m using django-tenants since a few months my webapp and everything works fine. Now I want to add django-tenant-users but I does not work when I set it up as the documentation says.

The problem is that the documentation says I need to add django.contrib.auth in shared and tenant app.

https://django-tenant-users.readthedocs.io/en/latest/pages/installation.html#updating-settings

But when I want to make migrations, I get this error:

Application labels aren’t unique, duplicates: auth

The screenshot shows my current apps in the settings.py.

And all the post in Stackoverflow etc. also shows the django.contrib.auth in both, the shared and tenant app.

Can anybody please help? I’m really desperate.

Thx!! :slight_smile:

i think you use installed apps like INSTALLED_APPS = SHARED_APPS + TENANT_APPS.
app is unique in installed apps, so you add django.contrib.auth in apps 1 time or… use other solution.