Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (27 sloc) 1.33 KB

Developing

staticapp

Front-end assets are compiled from the staticapp directory of django-chartwerk. This uses gulp, browserify and node-sass to compile/transpile assets to Django's standard static directory.

To begin developing assets, move into the staticapp directory and be sure to install dependencies using npm or yarn:

$ npm install
$ yarn

Then run the build process using gulp:

$ gulp

Updating chartwerk-editor

Chartwerk-editor includes a script to move compiled assets from the app into the static directory of django-chartwerk. First, upgrade chartwerk-editor from the staticapp directory.

$ npm update chartwerk-editor

Then run the script from chartwerk-editor's bin directory.

$ node node_modules/chartwerk-editor/bin/unbundle_django.js

Warning

This will overwrite chartwerk-editor templates and static files in django-chartwerk, replacing any customizations you may have made with the latest from chartwerk-editor.

Planned features

Django-chartwerk includes some models which anticipate future features.

The TemplateProperty and FinderQuestion models will be used in a future release to create an interactive wizard for picking a chart type in django-chartwerk.

You can’t perform that action at this time.