1
我的應用程序在openshift上運行,我無法加載數據庫。這是我的代碼:sqlalchemy not loading sqlite db
from sqlalchemy import Column, Integer, String,create_engine,ForeignKey,Time
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from classes import Team,Match,Channel,Country,Mapping
import json
app = Flask(__name__)
engine = create_engine('sqlite:///../data/euro2012tvguide.sqlite')
Session = sessionmaker(bind=engine)
session = Session()
在該文件中的數據,我已經將該文件euro2012tvguide.sqlite這是sqlite的分貝