- inspired by https://www.youtube.com/watch?v=IxXtDOI9RUo
Basically I took this code
https://github.com/pleabargain/fastapi_simple_jinja
- https://app.diagrams.net/?src=about#G14VeSCuQOn5kZkIoHJReGhElBJ9D8sAJi Not getting the next screen as per video: https://www.youtube.com/watch?v=L4WBFRQB7Lk
- fastapi == 0.85.0
- uvicorn == 0.18.3
- python-multipart == 0.0.5
- load a JSON file and render ALL conents to HTML
- if too many rows then paginate
- Create a template for a
- simple table
- if too many rows then paginate
- simple search
- global search (walk the whole db)
- search by model names
- add data to db (session)
- simple form to take in user email and password
- should check against existing user db! :)
- simple form to register a user (good exercise)
- simple table
Trying to get fastapi to restart, I got an error
ERROR: [Errno 10048] error while attempting to bind on address ('127.0.0.1', 8000): only one usage of each socket address (protocol/network address/port) is normally permitted
working fix for me
(windows)
Run resmon for resource monitor dialog
On Network tab search for Listening ports section
Look for the one taking 8000 port (my case: python.exe)
taskkill.exe /PID 17280 /F
here's how I found that FASTAPI apparently was stil running
netstat -aon | findstr :8000
how to kill PID on windows.
taskkill.exe /PID {PIDINQUESTION} /F