Utils

Here we will find functions that are used to transform information and return specific data. In audit we will find the following:

get_models_to_audit

Function that scans the apps installed in the settings variable INSTALLED_APPS and gets the apps from the project. It then imports each models file to get the values of the apps_audit_models dictionary. Returns an dictionary with all these values.

list_urls

Function that returns the list of urls registered in the project.

get_dict_strategies

Function that returns an object constructed from the STRATEGIES tuple of the AuditSettings model.