Using 2 databases influxdb and postgres

hello! i need to develop s django app that connects to postgres (as default) and influxdb. Some data will be stored in influxdb and some other data will be stored into postgres. i installed all necessary packages

i wrote this configuration for the db part on but it dont works


i found this configuration, but dont know if is write:

'machines': {
    'INFLUXDB_HOST': 'influxdb',
    'INFLUXDB_PORT': '8086',
    'INFLUXDB_DATABASE': 'testdb',

i have this error:
ImportError: cannot import name ‘InfluxDBClient’ from ‘influxdb’ (/home/dispater/Documents/djangotest/grafanaSED/venv/lib/python3.8/site-packages/influxdb/

any help ?

Hello @DanerSound,
Please make sure you are using the correct client. GitHub - influxdata/influxdb-client-python: InfluxDB 2.0 python client

1 Like

can i said that i love you just for reply to my message ? xD really thanks

1 Like