Django Authentication with Legacy Database

0

I am developing a project with a legacy database (Firebird), and I was able to configure settings.py and it is working with the database.

At the time of creating a login using forms, I am not able to create authentication with the database, as I am not using the default django user table, and I am trying to validate with an existing legacy system table.

Could anyone guide me on how to create a login using an existing legacy system table? And mostly the views.py part to authenticate.

    
asked by anonymous 12.11.2014 / 19:49

1 answer

2

You need to create a custom authentication backend, see link

You can copy and paste the django template, and specify in your template the name of the table and each column

In fact it may not be that simple, I do not know how passwords are stored in the legacy system, you do not even need to create a table, you can create your own authentication logic, such as authenticating to a system remote as AD / LDAP

    
13.11.2014 / 12:50