Skip to content

New configuration app

Our in-database settings were starting to grow a bit much for keeping them in the core.

This pull request splits them out into their own app.

In addition, the API is overhauled, to make the whole thing more robust and simple to use:

  • we can now list all known configuration options
  • we now know the default value of a configuration, which could allow resetting it
  • we now enforce the type of a configuration, both when storing and retrieving it

I'm renaming it as well, because Django has its concept of "settings" which are the ones based on python files, and I was starting to get confused between the two.

Finally, this also ports the currently used settings (well, one) to the new API, both in terms of code and actually stored values.

Fixes #441 (closed)

Merge request reports