Skip to content

Instantly share code, notes, and snippets.

@juliedavila
Created March 22, 2015 17:03
Show Gist options
  • Save juliedavila/3f62eaedf56fe4711424 to your computer and use it in GitHub Desktop.
Save juliedavila/3f62eaedf56fe4711424 to your computer and use it in GitHub Desktop.
init file for blog on interactive prez
# Copyright (c) 2014, Matt Makai
# All rights reserved.
# Full License can be read here: http://bit.ly/1qBgqzn
from flask import Flask
from flask.ext.socketio import SocketIO
import redis
app = Flask(__name__, static_url_path='/static')
app.config.from_pyfile('config.py')
from config import REDIS_SERVER, REDIS_PORT, REDIS_DB
redis_db = redis.StrictRedis(host=REDIS_SERVER, port=REDIS_PORT, db=REDIS_DB)
socketio = SocketIO(app)
from . import views
from . import websockets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment