尝试从 github 本地克隆和 运行 一个 python 网络应用程序

Trying to clone and run a python web app from github locally

这是我要克隆的网络应用程序:https://github.com/eddyharrington/Tendie-Tracker

很遗憾,我做不到。我已按照提供的所有步骤进行操作。我对最后两个步骤有点困惑。

第 5 步:这是我输入的内容

应用变量

SECRET_KEY=随机文本

数据库变量

DATABASE_URL=postgres://{postgres}:{123}@{localhost}:{5432.0}/{tracker}

当我 运行 应用程序时,我得到以下回溯。

  File "app.py", line 6, in <module>
    import tendie_dashboard
  File "C:\Users\Maithri\Desktop\Mini Project\Tendie-Tracker-master\tendie_dashboard.py", line 3, in <module>
    import tendie_budgets
  File "C:\Users\Maithri\Desktop\Mini Project\Tendie-Tracker-master\tendie_budgets.py", line 3, in <module>
    import tendie_categories
  File "C:\Users\Maithri\Desktop\Mini Project\Tendie-Tracker-master\tendie_categories.py", line 10, in <module>
    engine = create_engine(os.getenv("DATABASE_URL"))
  File "C:\Users\Maithri\Desktop\Mini Project\Tendie-Tracker-master\env\lib\site-packages\sqlalchemy\engine\__init__.py", line 479, in create_engine
    return strategy.create(*args, **kwargs)
  File "C:\Users\Maithri\Desktop\Mini Project\Tendie-Tracker-master\env\lib\site-packages\sqlalchemy\engine\strategies.py", line 56, in create
    plugins = u._instantiate_plugins(kwargs)
AttributeError: 'NoneType' object has no attribute '_instantiate_plugins' 

尝试在不带大括号的情况下输入值。你应该有类似的东西,

DATABASE_URL=postgres://postgres:123@localhost:5432/tracker

此外,端口号是整数值,而不是浮点数。