feat(api): load config using shared helpers
- add django settings module documentation - use default for previously required fields BREAKING CHANGE: The API command line interface require the configuration file to be present. The default configuration file path is `/etc/airtime/airtime.conf`
This commit is contained in:
parent
9af717ef7f
commit
2dcc654b70
12 changed files with 119 additions and 146 deletions
7
api/libretime_api/settings/README.md
Normal file
7
api/libretime_api/settings/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Django settings
|
||||
|
||||
The structure of the django settings module is the following:
|
||||
|
||||
- the `__init__.py` (`libretime_api.settings`) module is the django settings entrypoint. The module contains bindings between the user configuration and the django settings. **Advanced users** may edit this file to better integrate the LibreTime API in their setup.
|
||||
- the `_internal.py` module contains application settings for django.
|
||||
- the `_schema.py` module contains the schema for the user configuration parsing and validation.
|
Loading…
Add table
Add a link
Reference in a new issue