Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created June 3, 2015 02:05
Show Gist options
  • Save guyjacks/a9bbb2b2154b60a40928 to your computer and use it in GitHub Desktop.
Save guyjacks/a9bbb2b2154b60a40928 to your computer and use it in GitHub Desktop.
from flask import Flask
from theatertilt.database import db_session
app = Flask(__name__)
app.secret_key="not my real key"
import theatertilt.views
def shutdown_session(exception=None):
db_session.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment