Thanks Raimon!

it works:

app = Flask(__name__) 
app.config['TRYTON_DATABASE'] = 'tryton'                 
app.config['TRYTON_CONFIG'] = '/home/tryton/trytond.conf'
tryton = Tryton(app)  


Bye

El jueves, 10 de septiembre de 2015, 4:01:54 (UTC-3), raimonesteve escribió:
>
>
> El dia 10/09/2015 1.43, "Alejandro Brunacci" <abru...@bitson.com.ar 
> <javascript:>> va escriure:
> >
> > Hi everyone, I'm trying to use Flask as frontend from Tryton, but 
> because the lack of documentation is making me crazy to solve some 
> troubles... 
> >
> > When I try to connect to the database, flask is looking for a sqlite's 
> database and I'm using postgres as db. Is there any way to change it? or 
> flask_tryton only works with sqlite?
>
> When init app flask, you could define:
>
> TRYTON_DATABASE = 'tryton_database' 
> TRYTON_USER = '1'
> TRYTON_CONFIG = '/etc/trytond.conf'
>
> http://hg.b2ck.com/flask-tryton/file/9565cf10a7b9/flask_tryton.py#l35
>

Reply via email to