当我尝试从Flask应用程序连接到本地主机上现有的空PostgreSQL数据库时,收到"AttributeError:‘drivername’对象没有‘drivername’属性“。'/auth')
return app 我已经检查了以下Stackoverflow答案: db.create_all() 'NoneType' object has no attribute
apply_driver_hacks11:58:18 web.1 | AttributeError: 'NoneType' object has no attribute 'drivername'
从我在网上找到的信息来看,问题似乎是我可能没有正确地连接到数据库。flask_sqlalchemy/__init__.py", line 7