Go to file
Evgeniy Timokhov b7ffa16b40 Stripping `content` field from receiving from postgresql while getting all charts 2020-01-28 12:27:14 +03:00
api Stripping `content` field from receiving from postgresql while getting all charts 2020-01-28 12:27:14 +03:00
charting_library_charts Updated Django to 1.11.18 2019-01-09 14:14:40 +03:00
model Added indexes for ownerId and ownerSource fields in charts model 2020-01-28 12:26:30 +03:00
.gitignore rename: charts -> model 2015-05-25 13:50:46 -04:00
README.md Update README.md 2017-11-16 08:24:25 -05:00
manage.py Initial commit 2014-10-07 17:07:00 +04:00
requirements.txt Update requirements.txt 2020-01-17 13:47:35 +03:00

README.md

Charting Library Save/Load Backend

This is the tiny backend implementing Charting Library charts storage.

Requirements

Python 3x, pip, Django, Postgresql

How to start

  1. Install Python 3.x and Pip. Use virtual environment if your host has older python version and it cant be upgraded.
  2. Install PostgreSQL or some other Django-friendly database engine. Also you might want to install PgAdmin or any other administrative tool for your database.
  3. Go to your charts storage folder and run pip install -r requirements.txt. Unix users : you have to have python-dev package to install psycopg2.
  4. Create an empty database in Postgres (using either command line or pgadmin). Go to charting_library_charts folder and set up your database connection in settings.py (see DATABASES @ line #12).
  5. Run python manage.py migrate. This will create database schema without any data.
  6. Run python manage.py runserver to run TEST instance of your database. Use some other stuff (i.e., Gunicorn) for your production environment.