官方教程:https://docs.python-eve.org/en/stable/quickstart.html#database-interlude
根據官網教程運行eve時【python run.py】,出現了
ModuleNotFoundError: No module named 'config'
的錯誤。
只需要將run.py改爲
from eve import Eve
app = Eve(settings = 'setting.py')
if __name__ == '__main__':
app.run()
即可。