Skip to content Skip to sidebar Skip to footer

Couldnt Upload My Flask Application On Heroku

I have a flask application with postgresql db So the steps are: 1.gunicorn 2.Procfile 3.heroku login 4.heroku apps:create flask-lili 5.heroku addons:add heroku-postgresql:dev 6.her

Solution 1:

flask.ext is deprecated change flask.ext.migrate to flask_migrate hence code lines go as

from flask_migrate importMigrate, MigrateCommand

instead of

from flask.ext.migrateimportMigrate, MigrateCommand

refer this documentation Flask-Migrate https://flask-migrate.readthedocs.io/en/latest/

Solution 2:

Try changing from

flask.ext.migrate import Migrate, MigrateCommand

To

flask_Migrate import Migrate, MigrateCommand

Post a Comment for "Couldnt Upload My Flask Application On Heroku"