源代码在:https://github.com/imWildCat/kalecgos-docker
我在 web_server.py
和 downloader.py
里都有引用 kalecgos.db.models
,但是提示错误。
加了 __table_args__ = {"useexisting": True}
后则提示:
InvalidRequestError: Multiple classes found for path "File" in the registry of this declarative base. Please use a fully module-qualified path.
感觉都是初始化了两次, Google 了半天找不到相关问题,请问怎么解决?
Python 新手,请多吐槽。