r/FastAPI • u/Impressive-Hat1494 • Aug 21 '21
Question Shell for Fast api ?
There is shell in django , My teams wants the same for Fast api. I tried with IPython but the problem is I can't use Tortoise orm Queries as it says database has no connection and other stuff. My question : Is there any way to make or install a shell for fast api project.
11
Upvotes
1
u/sanketp60 Oct 16 '22
Try using pdb.
Add following lines to your code (preferably in your main app after imports):
Hope that helps :)