Currently it is necessary to call the following code manually wherever required:
e.g. in backend/nagios/plugins/check_oa_utilization or other scripts.
From the developer point of view i do not want to take care that the necessary backend (Django) is initialized, this should be done automatically, in particular when it is not obvious that this is required, e.g. when importing and using oA modules that use database models like
As discussed this with Sebastian W. it would be ideal when this happens in backend/settings.py or an equal location. On the other side there are code locations where it is necessary to initialize Django manually, e.g. in oaconfig --install.