updace connexion sqlalchemy : "@"
This commit is contained in:
parent
9ced27b153
commit
9d37bb2149
@ -2,6 +2,7 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
|
from sqlalchemy.engine import URL
|
||||||
|
|
||||||
isin_bdd = True
|
isin_bdd = True
|
||||||
# Parametres bdd CEN38 OUT
|
# Parametres bdd CEN38 OUT
|
||||||
@ -14,14 +15,18 @@ user = 'cen_admin'
|
|||||||
pwd = "#CEN38@venir"
|
pwd = "#CEN38@venir"
|
||||||
adr = '91.134.194.221'
|
adr = '91.134.194.221'
|
||||||
base = 'azalee'
|
base = 'azalee'
|
||||||
con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(user,pwd,adr,base), echo=False)
|
url = URL.create("postgresql+psycopg2", username=user, password=pwd, host=adr, database=base)
|
||||||
|
con = create_engine(url)
|
||||||
|
# con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(user,pwd,adr,base), echo=False)
|
||||||
|
|
||||||
# Parametres bdd SICEN OUT
|
# Parametres bdd SICEN OUT
|
||||||
sicen_user = 'cen_admin'
|
sicen_user = 'cen_admin'
|
||||||
sicen_pwd = '#CEN38@venir'
|
sicen_pwd = '#CEN38@venir'
|
||||||
sicen_adr = '91.134.194.221'
|
sicen_adr = '91.134.194.221'
|
||||||
sicen_base = 'sicen2'
|
sicen_base = 'sicen2'
|
||||||
sicen_con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(sicen_user,sicen_pwd,sicen_adr,sicen_base), echo=False)
|
sicen_url = URL.create("postgresql+psycopg2", username=sicen_user, password=sicen_pwd, host=sicen_adr, database=sicen_base)
|
||||||
|
sicen_con = create_engine(sicen_url)
|
||||||
|
# sicen_con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(sicen_user,sicen_pwd,sicen_adr,sicen_base), echo=False)
|
||||||
|
|
||||||
|
|
||||||
DIC_REF_HAB = {
|
DIC_REF_HAB = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user