Automation Common is a simple Django app that provides common functionality across different Django projects of the UofC UIS Automation team.
Quick start
testfixtures
Add “automationcommon” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'automationcommon', ]Include the automationcommon URLconf in your project urls.py like this:
url(r'', include('automationcommon.urls')),Run python manage.py migrate to create the automationcommon models.
All module logging writes to a logger named ‘automationcommon’
The unittests can be run using the runtests.py script.
This module has an audit trail feature that allows you to capture update to / deletes of selected models. To track changes to a model simple use the ModelChangeMixin (preceding models.Model). To capture the “editor” use automationcommon.models.set_local_user() to set the user to be used in the audit trail or configure your app like this:
MIDDLEWARE_CLASSES = ( ... 'automationcommon.middleware.RequestUserMiddleware', ... )
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-automationcommon-1.12.tar.gz.
File metadata
- Download URL: django-automationcommon-1.12.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ac022a1acb16a27397320dbbec9f87edd282582c1f4eb30e063ab883a501d8
|
|
| MD5 |
057a9d4c8da27e26b130c86b8020dd12
|
|
| BLAKE2b-256 |
4288eefa716cac66729a3988d713338d82d1c9082e6ae19d7af91b9d62bbfcf0
|