maykinmedia / django-setup-configuration

MIT License
0 stars 0 forks source link

Configure django rest applications using environment variables #1

Closed annashamray closed 7 months ago

annashamray commented 9 months ago

Description

Registration APIs (but not limited to these projects) should be configurable without manual actions in the Admin (following the configuration-as-code infrastructure principle). So the configuration using only environment variables is needed for the following APIs:

Tasklist

1st iteration

2nd iteration

Result / acceptance criteria

Related issues in other projects

joeribekker commented 8 months ago

Example:

export OPEN_ZAAK_DEFAULT_SELECTIELIJST_YEAR=2020
export OPEN_ZAAK_AUTH_APPLICATIONS=/volumes/auth.yaml

$ python src/manage.py setup_configuration --overwrite 

This will set the default selectielijst year to 2020 and will store/overwrite all applications with the permission in the yaml file.