Diogo Silva
Diogo Silva

Reputation: 195

How to create multiple tables for authentication in django

There is anyway to create two user tables that can be authenticated in django one table will be used to register normal users and other admins but that can not be related with django.contrib.auth thanks

Upvotes: 1

Views: 760

Answers (1)

Milad Khodabandehloo
Milad Khodabandehloo

Reputation: 1977

It's not rational to treat different between users and admins by putting them in two separated tables. You can give different permissions to different users and treat them due to which resources they must access. for more information check django permissions documentation.

Upvotes: 2

Related Questions