Skip to content

Instantly share code, notes, and snippets.

@DarkSector
Created June 12, 2011 16:42
Show Gist options
  • Save DarkSector/1021741 to your computer and use it in GitHub Desktop.
Save DarkSector/1021741 to your computer and use it in GitHub Desktop.
DATABASE = 'pronoy.db'
#initialize application
app = Flask(__name__)
def connect_db():
return sqlite3.connect(app.config['DATABASE'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment