Replies: 5 comments 10 replies
-
We can use E.g.: from backend.app.api.v1.user import router as user_router |
Beta Was this translation helpful? Give feedback.
-
Suppose the ideal directory structure is like this: api api/init.py is equivalent to routers.py, here only need to include the router of all subdirectories
api/auth/init.py
But it is not well compatible with cvb, the prefix must be filled in user.py. |
Beta Was this translation helpful? Give feedback.
-
I have submitted the dev branch, please check it out and work on it first |
Beta Was this translation helpful? Give feedback.
-
Hi, @wu-clan |
Beta Was this translation helpful? Give feedback.
-
Hi, @downdawn Please check:#32 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, @downdawn
Reopen this question.
It is known to be unfriendly to IDE smart prompts.
Ensure that the _init_ file only contains package import, and do not use it to implement code unless necessary.
Beta Was this translation helpful? Give feedback.
All reactions