From d558c62603f8d06686021fd9f758e1a3ce3d69a9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 19 2014 09:02:42 +0000 Subject: Now that progit.lib is there, we can initialize the SESSION correctly --- diff --git a/progit/__init__.py b/progit/__init__.py index 5d32ae3..4471c71 100644 --- a/progit/__init__.py +++ b/progit/__init__.py @@ -24,7 +24,7 @@ from flask_fas_openid import FAS from functools import wraps from sqlalchemy.exc import SQLAlchemyError -import progit.forms as forms +import progit.lib # Create the application. @@ -40,8 +40,7 @@ if 'PROGIT_CONFIG' in os.environ: FAS = FAS(APP) -SESSION = None -#SESSION = progit.create_session(APP.config['DB_URL']) +SESSION = progit.lib.create_session(APP.config['DB_URL']) # Set up the logger ## Send emails for big exception