Skip to content
How to Use Chart.js with Django
Python HTML
Branch: master
Clone or download

Latest commit

Latest commit 831c10e Jan 19, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mysite
.gitignore Initial commit Jan 19, 2020
LICENSE Initial commit Jan 19, 2020
README.md Add link to post title Jan 19, 2020
manage.py Add initial project Jan 19, 2020
requirements.txt Add initial project Jan 19, 2020

README.md

How to Use Chart.js with Django

Python Version Django Version

Code example used in the tutorial How to Use Chart.js with Django.

Running the Project Locally

First, clone the repository to your local machine:

git clone https://github.com/sibtc/django-chartjs-example.git

Install the requirements:

pip install -r requirements.txt

Apply the migrations:

python manage.py migrate

Load the data from fixtures:

python manage.py loaddata countries.json cities.json

Finally, run the development server:

python manage.py runserver

The project will be available at 127.0.0.1:8000.

License

The source code is released under the MIT License.

You can’t perform that action at this time.