/django-interactive-charts

Adding interactive charts using the Chart.js library to the Django admin dashboard.

Primary LanguagePython

Django Interactive Charts

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the requirements:

    (venv)$ pip install -r requirements.txt
  4. Apply the migrations:

    (venv)$ python manage.py migrate
  5. Populate the database with randomly generated data (amount = number of purchases):

    (venv)$ python manage.py populate_db --amount 2500
  6. Create a superuser, and run the server:

    (venv)$ python manage.py createsuperuser
    (venv)$ python manage.py runserver
  7. You can then see the charts here: