synw / django-chartflo-demo

Demo application for Django Chartflo
MIT License
0 stars 0 forks source link

Django Chartflo demo

Demo for Django Chartflo

Install

Clone the repository and install the dependencies:

   virtualenv -p python3 chartflo
   cd chartflo
   source bin/activate
   git clone https://github.com/synw/django-chartflo-demo.git
   cd django-chartflo-demo
   pip install --no-cache-dir dataset
   pip install -r requirements.txt

Initialize

Make migrations and run them to create the Sqlite database:

   python3 manage.py migrate
   python3 manage.py createsuperuser

Run the management command to generate data and initialize the dashboards:

   python3 manage.py init_timeseries
   python3 manage.py runserver

Go to /dashboards/timeseries/

Management commands

Extra management commands are available: delete_timeseries to delete all the data and pipeline to run the data pipeline to regenerate the charts.

Regenerate the charts on save

Optional: run the Django rq worker: python manage.py rqworker default: the charts and widgets will be regenerated on every save of the Serie model