Django App is not a postgres app

I’m trying to deploy my django application in fly.io but every time i go through the launch wizard i get this error Set secrets on news123-polished-sun-2310: SECRET_KEY
Failed attaching news123-polished-sun-2310 to the Postgres cluster news123-polished-sun-2310: app news123-polished-sun-2310 is not a postgres app.
Try attaching manually with ‘fly postgres attach --app news123-polished-sun-2310 news123-polished-sun-2310’
Error creating Postgres cluster: app news123-polished-sun-2310 is not a postgres app
Wrote config file fly.toml

When i try to manually attach it, it says app news123-polished-sun-2310 is not a postgres app

1 Like

Hi, could you post the full output of the command you’re running (including the command itself)?

Did you intend for news123-polished-sun-2310 to be a Postgres app?

This command won’t work, because you’re specifying the same app as both the Postgres app and the app to which you want to attach the Postgres app: fly postgres attach --app news123-polished-sun-2310 news123-polished-sun-2310

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.