O'Reilly logo

Highcharts Cookbook by Nicholas Terwoord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Django as a data provider

Django is likely one of the more robust Python frameworks and certainly one of the oldest. As such, Django can be used to tackle a variety of different cases and has a lot of available support and extensions. This recipe will look at how we can leverage Django to provide data for Highcharts.

Getting ready

Perform the following steps before we proceed:

  1. Download and install Python 2.7 (http://www.python.org/
  2. Download and install Django (http://www.djangoproject.com/download/).
  3. Create a new folder django for our project.
  4. From within the django folder, run the following command to create a new project:
    django-admin.py startproject example
  5. Create a file django/bower.json to list the following JavaScript dependencies:
    { "name": ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required