Skip to content

Instantly share code, notes, and snippets.

View Ambro17's full-sized avatar
💭
Coding

Nahuel Ambrosini Ambro17

💭
Coding
  • Shiphero
  • Los Cardales, Argentina
View GitHub Profile
@fprieur
fprieur / config.py
Created March 15, 2014 02:44
Postgresql config for local and heroku with peewee ORM
#heroku config:set HEROKU=1
import os
import urlparse
import psycopg2
from flask import Flask
from flask_peewee.db import Database
if 'HEROKU' in os.environ: