Django Rest Framework With Two User Table

I currently working on project that use two user table. One for web admin and another is for mobile app. The web admin is using django contrib user and is already taken care of for authentication. I need some way to get the user for mobile app to get authentication too. How can i make this possible with this scenario. To make our app is save with two user table.

You really don’t want to do that.

You only need and want to have one User table. That’s the reason for the flags and permission system within Django - to avoid having to try and do things like this.

You can also create a custom User with attributes for whatever purposes you need.

But no. Do not implement your system with two user models.

1 Like