[sqlalchemy] Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread Евгений Рымарев
Hello everyone! I have Flask app with using flask_sqlalchemy: from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_pyfile(filename='settings.py', silent=True) db = SQLAlchemy(app=app) I want connect to same database from daemon. In daemon i just

Re: [sqlalchemy] Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread mike bayer
On 03/03/2017 12:08 PM, Евгений Рымарев wrote: Hello everyone! I have Flask app with using flask_sqlalchemy: | fromflask importFlask fromflask_sqlalchemy importSQLAlchemy app =Flask(__name__) app.config.from_pyfile(filename='settings.py',silent=True) db =SQLAlchemy(app=app) | I want connect

[sqlalchemy] Re: Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread Евгений Рымарев
>>call_special_firebird_method Not understand. What method? You mean fdb method? I found method _Connection__set_default_tpb and use it. app = Flask(__name__) app.config.from_pyfile(filename='settings.py', silent=True) db = SQLAlchemy(app=app) engine =

[sqlalchemy] Re: Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread Евгений Рымарев
full error Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 1122, in _do_get return self._pool.get(wait, self._timeout) File "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/queue.py", line 145, in get raise Empty