Flask-migrate on openshift

I use a flask. I installed Flask-migrate and used it to migrate my postgresql db. It works fine in my local box. However, when I run it when I open it, I get an error

"File "/opt/rh/python27/root/usr/lib64/python2.7/ConfigParser.py", line 396, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'alembic'
" 

Does anyone know what it is and how to fix it?

+3
source share
2 answers

This probably means that Flask Migrate cannot find the alembic configuration. Flask Migrate depends on Alembic to generate db versions.

By default, Flask Migrate searches for configuration scripts (and db) in the directory migrations. If your configuration is present in another folder, you can specify it with-d <dir>

+4
source

, LD_Library_path, ​​ .

0

All Articles