Package: django-audit-tools
Version:0.3.0Status:DevelopmentAuthor:José Antonio Perdiguero LópezWarning:This package is currently under development, use at your own risk.Django application that provides a set of tools for auditing requests and models and improve logging.Full documentation inReadTheDocs.Quick startAddaudit_toolsto yourINSTALLED_APPSsettings like this:INSTALLED_APPS = (
    ...
    'audit_tools',
)Addaudit.middleware.AuditMiddlewareto yourMIDDLEWARE_CLASSESsettings like this:MIDDLEWARE_CLASSES = (
    ...
    'audit_tools.audit.middleware.AuditMiddleware',
)Configure blacklisted URLs inAUDIT_BLACKLISTsettings.Register models that will be logged inAUDIT_LOGGED_MODELSsettings.Execute the next django command:python manage.py prepare_auditSettingsAUDIT_ACTIVATEActivate or deactivate audit.Default:AUDIT_ACTIVATE = TrueAUDIT_DB_ALIASAudit database connection alias.Default:AUDIT_DB_ALIAS = 'audit'AUDIT_DB_CONNECTIONAudit database connection parameters.Default:AUDIT_DB_CONNECTION = {
    'HOST': 'localhost',
    'PORT': 27017,
    'NAME': 'audit',
    'USER': '',
    'PASSWORD': '',
}AUDIT_RUN_ASYNCUse Celery to run in async mode.Important: Celery concurrency level must be configure to 1 (–concurrency=1 parameter in celeryd start)Default:AUDIT_RUN_ASYNC = FalseAUDIT_CELERY_QUEUECelery queue name.Default:AUDIT_CELERY_QUEUE = 'audit'AUDIT_LOGGED_MODELSList of models that will be logged for audit. Each entry consists in a string that represents a model using“<module>.<model>”format.Example:AUDIT_LOGGED_MODELS = (
    'audit_tools.audit.models.Access',
)Default:AUDIT_LOGGED_MODELS = ()AUDIT_BLACKLISTBlacklisted URLs. Each application may have a tuple of regex patterns. If an URL matches a pattern will not be logged.Example:AUDIT_BLACKLIST = {
    'api': (
        r'^/api/.*',
        r'^/API/.*',
    )
}Default:AUDIT_BLACKLIST = {}AUDIT_ACCESS_INDEXESCustom indexes for the accesses. There is the possibility to add new custom indexes to the Audit database.Example:AUDIT_ACCESS_INDEXES = [
    'custom.pools.names',
    'custom.pools.num_polls',
    ('custom.pools.names', 'custom.pools.num_polls'),
]AUDIT_PROCESS_INDEXESCustom indexes for the processes. There is the possibility to add new custom indexes to the Audit database.AUDIT_MODEL_ACTION_INDEXESCustom indexes for the model actions. There is the possibility to add new custom indexes to the Audit database.AUDIT_CUSTOM_PROVIDERCustom data provider. Each application may add custom data to Access entries using own functions.Default:AUDIT_CUSTOM_PROVIDER = {
    'audit_tools': 'audit_tools.audit.middleware.custom_provider',
}AUDIT_TRANSLATE_URLSTranslate Audit URLs:Default:AUDIT_TRANSLATE_URLS = FalseChanges0.4.0 - 18/01/2015Create tests for all modules.Raise test coverage to near 100%.Add integration with prospector using tox.Add integration with Landscape.0.3.0 - 05/01/2015Use nose as testing framework.Update requirements and create requirements for testing.Update code to work with Django Rest Framework 3.3+.Update code to work with Django Rest Framework Mongoengine 3.3+.Refactor main package to make audit a subpackage from audit_tools.Create a full tox.ini with coverage, nose, flake8 and sphinx.Create config file for coverage.Add integration with Travis CI.Add integration with Coveralls.0.2.0 - 04/01/2015Create an Api to provide Process, Access and ModelAction models as resources.Create a new view for searching Access models using Backbone and new Api.Refactor old ModelAction searching view using Backbone and new Api and unify with new Access view.Refactor middleware and signals modules to reduce method complexity and add a lot of tests.0.1.0 - 03/01/2016Initial release.