skip to Main Content

Postgresql – Problem with databe "TypeError: <generator object get_db at 0x000002B68FBDB100> is not a callable object"

I get File "C:PythonProjectsmyProjectroutershome.py", line 39, in @router.get("/home", response_class=HTMLResponse) ... raise TypeError('{!r} is not a callable object'.format(obj)) TypeError: <generator object get_db at 0x000002B68FBDB100> is not a callable object home.py from fastapi import Depends, APIRouter, Request from fastapi.templating import Jinja2Templates from…

VIEW QUESTION

Docker – How to configure certificate for fastapi app

I created two applications (backend (fastapi. Works on 8000 port), frontend (reactjs. Works on 80 port)) they are communicate each with other. My docker-compose file: version: '3.7' services: frontend: container_name: "frontend" build: context: ./frontend stop_signal: SIGTERM ports: - "80:80" volumes:…

VIEW QUESTION
Back To Top
Search