This is the tiny backend implementing Charting Library charts storage.
Python 3x, pip, Django, Postgresql
- Install Python 3.x and Pip. Use virtual environment if your host has older python version and it cant be upgraded.
- Install PostgreSQL or some other Django-friendly database engine. Also you might want to install PgAdmin or any other administrative tool for your database.
- Go to your charts storage folder and run
pip install -r requirements.txt. Unix users : you have to have python-dev package to installpsycopg2. - Create an empty database in Postgres (using either command line or
pgadmin). Go tocharting_library_chartsfolder and set up your database connection insettings.py(seeDATABASES@ line #12). - Run
python manage.py migrate. This will create database schema without any data. - Run
python manage.py runserverto run TEST instance of your database. Use some other stuff (i.e., Gunicorn) for your production environment.