Code example used in the tutorial How to Use Chart.js with Django.
First, clone the repository to your local machine:
git clone https://github.com/sibtc/django-chartjs-example.gitInstall the requirements:
pip install -r requirements.txtApply the migrations:
python manage.py migrateLoad the data from fixtures:
python manage.py loaddata countries.json cities.jsonFinally, run the development server:
python manage.py runserverThe project will be available at 127.0.0.1:8000.
The source code is released under the MIT License.