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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e851-2bb97.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e851-2bb97.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?