No description, website, or topics provided.
CSS Python HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
librato_chart_sender
librato_chart_sender_web
.gitignore
Procfile
README.md
manage.py
requirements.txt
runtime.txt
scheduler.py

README.md

Librato Chart Sender Web

It's meant so that admins can acess the website and work with their own configurations and will load the librato chart sender app

Usage

Install instructions

  1. Install Django

    • sudo pip install django
  2. Install django-fontawesome

    • sudo pip install django-fontawesome
  3. Install postgres package

    • install postgress.app

    • sudo pip install psycopg2

    • sudo pip install -e git+https://github.com/weareswat/librato_chart_sender_package.git#egg=Package

    Configure your db via postgres console if needed:

    1. sudo su
    2. su postgres -c psql postgres
    3. CREATE USER postgres WITH PASSWORD 'swat';
    4. CREATE DATABASE librato_chart_sender WITH OWNER postgres;
    5. GRANT ALL PRIVILEGES ON DATABASE librato_chart_sender TO postgres;

    Set environment variable: (needed for sending emails via mailgun)

    1. export MAILGUN_API_KEY=your_mailgun_api_key (or better add it to ~/.bashrc or ~/.bash_profile
    • all necessary credentials you will find in the access spreadsheet
  4. Migrate the database to your machine

    • python manage.py migrate
  5. Run local server

    • python manage.py runserver
  6. Open webpage

Acess admin page

  1. Create a superuser

    • python manage.py createsuperuser

    It will ask for a username, email and password

  2. Go to webpage

    And sign in with your account