skip to Main Content

Docker – Connecting to PostgreSQL Cointainer Database with Airflow DAG

I have issue with connecting to airflow database I can do it locally with such code import pandas as pd from sqlalchemy import create_engine import os df = pd.read_csv('wynik_zgloszenia.csv', sep = '#') engine = create_engine(f'postgresql+psycopg2://postgres:mysecretpassword@localhost:8001/postgres',client_encoding='utf8') df.to_sql('permissions', engine, index=False, if_exists='replace') I…

VIEW QUESTION

Postgresql – Psycopg2 – Django 3.0.5

I am trying to makemigrations in my project with Django using postgresql. But I have been having the following error: (agenda_api) C:UsersfelipOneDriveEscritorioManagmentCursosDjangoagendadjagenda>python manage.py makemigrations Traceback (most recent call last): File "C:UsersfelipOneDriveEscritorioManagmentCursosDjangoagenda_apilibsite-packagesdjangodbbackendspostgresqlbase.py", line 25, in <module> import psycopg2 as Database File…

VIEW QUESTION
Back To Top
Search