In this tutorial, we will create a basic blog app using FastAPI for the backend, HTML and CSS for the frontend, and a JSON file for performing basi...
For further actions, you may consider blocking this person and/or reporting abuse
Request to add - how to make this application public. This article shows hosting on a local host. If you could add how to host it public, it would be a complete - end to end - coverage. And would be very helpful.
Thank you.
@cshalive ,I'm thinking about it as well. Let me put this on my "to do" list for blog posts.
Thank you.
By the way, I ran in to error while using the above code.
The error was
AssertionError: jinja2 must be installed to use Jinja2Templates
Not sure why the code at line #4 did not work as expected
from fastapi.templating import Jinja2Templates
I had to fix it by installing Jinja2 separately
install this
pip install Jinja2
. Let me know if it works.Yes, that's how I fixed.
Look forward to your blog post on how to host this public
and also integrated with database. Two good topics ;)
Yes, the hosting fastapi project is expected to arrive next week, and the database integration will published this week. @cshalive
Please share the link if posted already. Eagerly waiting :)
Great tutorial!
Thansk @andrewbaisden
🤔
There's basically contents of just 4 files in here with no further reasoning or underlying explanation.
I think pointing people to a repo instead, and explaining how things work might be a better idea. :)
sure !!, Next time will do that.
Nice demonstration of FastApi crud with html. Please, can you do the same thing, but this time, getting data from sql lite or MySQL database? Thanks
Sure @alexanderwalsh !!
Next blog will be coming with db.
It will be great if thats PostgreSQL !
You want PostgreSQL, okay next week new blog with PostgreSQL will be coming. @swoopsavvy
Excellent introduction to FastAPI tutorial; I hope to see a blog post about database integration soon. @jagroop2001
Thanks @works , sure I will come up with blog regarding db integration
Hi @jagroop2001
I successfully ran the program in the browser. It would be very beneficial if you could provide a detailed explanation of how it works, including a breakdown of each concept and its functionality within the code.
Yes, I will address this in my upcoming blog post on implementing FastAPI with a database (Postgres or Mongo). @indra_kiran_b50d9ee74a55b
Great!
Thanks @jottyjohn
Great tutorial! For anyone who likes FastAPI/Jinja2, I built an open source rapid prototyping template.
It would be great if people would contribute to this open source repository to enhance their flask skill further.
ni ce
Thanks @syedmuhammadaliraza
Why python-multipart is installed in this ? @jagroop2001
@john12 ,
python-multipart
is typically installed in FastAPI projects that involve handling multipart form data ( like sending formdata from frontend to backend)okay, got it !!