import subprocess as sp app.config['SQLALCHEMY_DATABASE_URI'] =sp.getoutput('heroku config:get DATABASE_URL -a My-heroku-dbApp MyUIapp')
Above is the code which been using to fetch connection string from heroku postgress App
https://stackoverflow.com/questions/66020258/postgres-database-uri-not-working-on-heroku-after-deployment-used-subprocess-ge February 03, 2021 at 10:05AM
没有评论:
发表评论