M
M
Mikkkch2021-01-26 13:02:38
Django
Mikkkch, 2021-01-26 13:02:38

What is the setting_changed signal used for?

The principle of operation of settings in all libraries is clear to me. There are default settings and they are subsequently overridden by user settings, which we can get using gettatr({django_settings}, {dictionary_name}).
I'm assuming that the setting_changed signal allows you to override settings in the painttam when the user hasn't reloaded his project, but some kind of code instruction has been triggered accessing the settings dictionary located in the root directory in the settings.py file? Am I right, tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_, 2021-01-26
@Mikkkch

The signal is sent when jang settings change at runtime.
The documentation is supposed to be used for tests, in your example - for crutches :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question