from flask import Flask
from .models import *

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'

from codegolf import views

from flask import Flask
import sqlalchemy as sa
from .models import *

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
engine = sa.create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
Session = sa.sessionmaker(bind=engine)

# instantiate Session to do things.
# I might write some nice Flask extension here, but I don't want to use flask_sqlalchemy

from codegolf import views

Update app decl to use sqlalchemy rather than flask_sqlalchemy properly
Update app decl to use sqlalchemy rather than flask_sqlalchemy properly

  from flask import Flask
+ import sqlalchemy as sa
  from .models import *
  
  app = Flask(__name__)
  app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
+ engine = sa.create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
+ Session = sa.sessionmaker(bind=engine)
+ 
+ # instantiate Session to do things.
+ # I might write some nice Flask extension here, but I don't want to use flask_sqlalchemy
  
  from codegolf import views
  
Update app decl to use sqlalchemy rather than flask_sqlalchemy properly
## Code Before:
from flask import Flask
from .models import *

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'

from codegolf import views

## Instruction:
Update app decl to use sqlalchemy rather than flask_sqlalchemy properly
## Code After:
from flask import Flask
import sqlalchemy as sa
from .models import *

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
engine = sa.create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
Session = sa.sessionmaker(bind=engine)

# instantiate Session to do things.
# I might write some nice Flask extension here, but I don't want to use flask_sqlalchemy

from codegolf import views
