Last active
September 2, 2018 23:49
-
-
Save ademola25/ed684f0f6a170e43ba85c78006fc69af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import make_response | |
import requests | |
app = Flask(__name__) | |
with app.open_resource('client_secrets.json') as f: | |
CLIENT_ID = json.load(f)['web']['client_id'] | |
# Connecting to the Database and create database session | |
engine = create_engine('postgresql://catalog:postgres@localhost/catalog') | |
Base.metadata.bind = engine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment