照着书上敲,一直会报这个错误,大概是说这个错误是说只能在同一个线程中使用吧?是不是要用到creat_scoped_session 呢,请各位大佬指点一下,谢谢!
sqlalchemy.exc.ProgrammingError: (sqlite3.ProgrammingError) SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 139878844028672 and this is thread id 139878951810816 (Background on this error at: http://sqlalche.me/e/f405)
把数据库的
uri
改成这样试试看:有慕课网收费视频,需要的看我主页