It’s very easy to install Canary Reports:
Download the source (available on bitbucket) and put the canary directory somewhere in your Python path:
$ git clone git@bitbucket.org:bluecamel/django-canary.git django-canary
Add canary to INSTALLED_APPS.
Run collectstatic or copy the static/canary directory to your static media directory.
All of the examples in the documentation are included in the demo project. If you’d like to play with the examples yourself, simply:
Make sure canary and canary.demo are in your PYTHONPATH or sys.path.
Install inplaceeditform. This is a dependency for editable columns:
- Make sure inplaceeditform is in your PYTHONPATH or sys.path.
- Make sure you’ve run collectstatic or otherwise managed your static files.
Change the database configuration in demo/settings.py to suit your preferences. If you have sqlite installed, you don’t need to do anything.
Create the database tables needed for the app:
$ python manage.py syncdb
Load initial data to use to play with the reports:
$ python manage.py loaddata canary_test_data
Start your development server:
$ python manage.py runserver
Go to http://localhost/canary_examples/ to play with the reports.
You can also just install the examples app in your own project:
Add canary.demo.examples to INSTALLED_APPS.
Create the database tables needed for the app:
$ python manage.py syncdb
Add this line to your urls.py:
url(r'canary_examples/', include('canary.demo.examples.urls')),
Start your development server:
$ python mnage.py runserver
Go to http://localhost/canary_examples/ to play with the reports.
Read through the Introduction to Django Canary Reporting.