Replies: 8 comments
-
|
You know it's rly hard to help you with the error only and no code. |
Beta Was this translation helpful? Give feedback.
-
|
There may be more than one |
Beta Was this translation helpful? Give feedback.
-
the thing is exception from sqlalchemy not from my code |
Beta Was this translation helpful? Give feedback.
-
that the strange part, its only 1 class User in my code |
Beta Was this translation helpful? Give feedback.
-
Yeah, it is. But without any reproducible code it's very hard to say what causes it. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
hey, i came across the same question, how did you solve it? |
Beta Was this translation helpful? Give feedback.
-
|
in the bracket where you define the class name, embed the path to the class. for example, if your models file is in a folder, you write something like: owner = relationship("folder_name.file_name.class_name"). hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I want to make relationship to my table but this error keep happening
Operating System
Windows
Operating System Details
Windows11
FastAPI Version
0.70.1
Python Version
Python 3.10.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions