When i use documentation of Gino Webserver Fastapi, i try reproduce db = Gino(....) , so all parameters on .env file pass, so
AttributeError: 'Config' object has no attribute 'DB_DSN'
my DB_DSN is DB_DSN=postgres+psycopg2://postgres@localhost:5432/fund_api , no have password
i tried with many variables options like:
'postgresql+psycopg2://postgres@localhost:5432/fund_api'
"postgresql+psycopg2://postgres@localhost:5432/fund_api"
"postgresql://postgres:@localhost:5432/fund_api"
"postgresql://postgres:@localhost:5432/fund_api"
What I Did
File "./main.py", line 2, in <module>
from src.models import db
File "/home/scrimfx/Projetos/FundAPI/fundenor-api/src/models/__init__.py", line 6, in <module>
dsn=config.DB_DSN,
AttributeError: 'Config' object has no attribute 'DB_DSN'
Description
When i use documentation of Gino Webserver Fastapi, i try reproduce db = Gino(....) , so all parameters on .env file pass, so AttributeError: 'Config' object has no attribute 'DB_DSN'
my DB_DSN is DB_DSN=postgres+psycopg2://postgres@localhost:5432/fund_api , no have password
i tried with many variables options like: 'postgresql+psycopg2://postgres@localhost:5432/fund_api' "postgresql+psycopg2://postgres@localhost:5432/fund_api" "postgresql://postgres:@localhost:5432/fund_api" "postgresql://postgres:@localhost:5432/fund_api"
What I Did