Django Form What is a HTML form? What kind of use cases does it have? A webform, web form or HTML form on a web page allows a user to enter data that is sent to a server for processing. Forms can resemble paper or database forms because web users fill out the forms using.
I'm creating a system in Django with admins(not superuser) and employees working under them. I've created admins registration and login using Django's built-in models. Now I have created custom model for employee's profile. The admin can only register the employee using his dashboard. This part has been done. Now I want to know that how to authenticate the employee's credentials so that the he/she can login to his/her own dashboard?Note that the admin and superuser are different in this case. Admin cannot access superuser's panel.
The models are:
I want to have login validation for EmployeeProfile
model.
I have already tried custom authentication using backends but it failed.
I'm new to Django and this is the part of my first project in Django.
Thank you in advance.
Edit: I solved this question by extending User model in the Employee profile as well.