The configuration content of the settings stored in the database in django

problem description

add ldap authentication to django to use the django-auth-ldap module. You only need to introduce the module into settings.py and enter the corresponding parameter values. But in my project, I want to enable and enter these parameter values in web, and then fall into the database. When django starts, it automatically checks whether ldap, is enabled. If it is enabled, go to the database to get the configuration content.

clipboard.png

the environmental background of the problems and what methods you have tried

there is no train of thought.

Nov.27,2021

is solved through signal.

Menu