The only reason why I feed my TH-cam algorithm with creators having a small number of subscribers is to not miss out on such an incredibly good TH-cam channel like this one. Thank you, you have helped me a lot with the {%for file in files%} {%endfor%} :-*
This is great! I appreciate how you iterate to the final solution and recap the material at the end. I think that makes the video really effective. Good stuff.
Phenomenal. I had been wondering about switching from Flask to FastAPI for some small web projects and this has convinced me to go for it. When I saw you were pulling in Tailwind I just knew you could be trusted. Excellent stuff this.
thanks for the good video For non-English speaking Asians, your correct pronunciation is much easier to understand than an American's more difficult pronunciation. - From Korea
Thank you! I'm glad my pronunciation can be understood more easily, especially as I'm from Scotland (we have very distinctive accents). PS - I look forward to visiting Korea one day!
Do you know if there is something like Django-Compressor for FastAPI for sending static files like scripts? I am interested in combining this with pytailwindcss, it requires a build step but you get minimal css when using tailwind. Great tutorial btw!
Hey thanks for the awesome content i was looking for FastAPI training. I am having a issue and i couldn't solve it even i copy paste your codes. Whatever i do i can't get list of movies output. I only get Movie List {% include "table.html" %} Film Name Director Load More this format. Can you help me or do you have any solution?
hey great tutorial, how can I get rid of the validation error when calling serverip:port/docs ? It says something like: Schemas -> HTTPValidationError some type error (tested with your repo) thx in advance
Thank you for the comment! django-ninja is good for working with Django - however, FastAPI is a fantastic Python framework itself for web apps. I wanted to demonstrate its use with templates and HTMX in this video. dango-ninja also gets most of its ideas/style from FastAPI. Both are very good choices for developing APIs in Python.
gut. I want to use python function in html. Do you have an idea? For example, I want to perform string operations on {{ film.name }} in index.html in this example. Or I want to import an additional library and use it in html. didn't work. it does not memorize the variable. Actually how can round(), time.ctime() be used in html for example. I want to apply it to data from table rows.
You would do this in the route definition of your python. I added the following to the main.py and then adding a calc.html in templates which rounds a number 4.555 and displays 5. @app.get("/calc/", response_class=HTMLResponse) async def calculation(request: Request): calc = round(4.555) context = {"request": request, 'calc': calc} return templates.TemplateResponse("calc.html", context) and you need to call from templates/calc.html your variable calc like {{ calc }} in the body
The only reason why I feed my TH-cam algorithm with creators having a small number of subscribers is to not miss out on such an incredibly good TH-cam channel like this one. Thank you, you have helped me a lot with the {%for file in files%} {%endfor%} :-*
Thanks so much Aleksa! I'm glad the videos have helped. Thanks for watching and for the nice message!
Fantastic tutorial. Every step so clear and well described. I don't know why everyone doesn't do tutorials like this.
Thanks a lot for the feedback! Delighted to hear that. Will have more FastAPI stuff coming up soon!
This is great! I appreciate how you iterate to the final solution and recap the material at the end. I think that makes the video really effective. Good stuff.
Thank you Michael!
Phenomenal. I had been wondering about switching from Flask to FastAPI for some small web projects and this has convinced me to go for it. When I saw you were pulling in Tailwind I just knew you could be trusted. Excellent stuff this.
Thanks a lot for the comment, much appreciated!
your videos about FastApi that what I need! Doing a project now, I am newby in FastAPI, my project will be a Poll for teachers
Thank you! Good luck with your project - if you have any ideas for videos/series, just let me know!
thanks for the good video For non-English speaking Asians, your correct pronunciation is much easier to understand than an American's more difficult pronunciation. - From Korea
Thank you! I'm glad my pronunciation can be understood more easily, especially as I'm from Scotland (we have very distinctive accents).
PS - I look forward to visiting Korea one day!
@@bugbytes3923 How interesting that the Scottish accent is easier to understand. I wonder what Koreans make of other accents from the UK?
Great, Don't have enough praise for your python contents.
Thank you!
Thanks - first video of yours I've seen, and it solved my beginner problem with Jinja2 templates. Cheers, from a fellow Scot
Thanks - glad the video helped! Cheers from Glasgow.
love your style, fast pace, dense and information rich, help me to focus and pay attention. keep up the great work.😊
Thanks a lot, really nice comment - cheers!
Wow! First time seeing one of your videos. STELLAR explanation. Subscribed. Thank you.
Awesome, thank you Eric!
I've been looking all over for this topic, thank you!
Thank you for watching, Arunen!
Nice delivery. Well explained. Nice!
Thanks a lot!
Great content man. As always.
Looking forward to your content on using Fastapi as a full-fledged backend including django like user authentication.
Thanks!
I'll explore FastAPI, along with more Django, in the coming months!
@@bugbytes3923 Awesome!
You're awesome mate. Really liking your videos. Keep it up!
Thanks a lot, good to hear! Thanks for watching.
Hea @BugBytes, I really love your teaching.
Can we get a full course on returning HTML templates, alongside working with forms with FastAPi please?
“We don’t want a table embedded in a button as arguably not a best user experience “ Love that part 😂
This is GOLD Man, my gratitude. :)
Thanks a lot man!
@@bugbytes3923 I also loved your Django + HTMX series. :)
Do you know if there is something like Django-Compressor for FastAPI for sending static files like scripts? I am interested in combining this with pytailwindcss, it requires a build step but you get minimal css when using tailwind. Great tutorial btw!
Nice tutorial! I would have done 2 endpoints instead of looking at the headers, why that was your choice?
Just what I was looking for, thanks !!!
Thanks!
Beautifully done! Thank you.
Thanks a lot!
Nice video. Is there a second part with the DB setup? Thanks.
Hey thanks for the awesome content i was looking for FastAPI training.
I am having a issue and i couldn't solve it even i copy paste your codes. Whatever i do i can't get list of movies output. I only get
Movie List
{% include "table.html" %}
Film Name Director
Load More
this format. Can you help me or do you have any solution?
Thanks bro! What about xxs attacks in this case ?
In Django we have security from the box , what about fastapi?
Great series! And I like the accent 😅
Thank you! 😅
awesome content
Thanks Ben!
amazing video
Thanks !
Superb
Thanks a lot!
Too GOOOD!
Thanks a lot!
What about SSE with jinja2 produced HTML partials in FastAPI?? 😮
I bet these videos suddenly became more popular right now?
hey great tutorial, how can I get rid of the validation error when calling serverip:port/docs ? It says something like: Schemas -> HTTPValidationError some type error (tested with your repo) thx in advance
Is HTMX lighter than a kilogramme of steel or a kilogramme of feathers?
Thanks a lot for the video, as always it is very good. Was there any reason you did not use django-ninja here?
Thank you for the comment!
django-ninja is good for working with Django - however, FastAPI is a fantastic Python framework itself for web apps. I wanted to demonstrate its use with templates and HTMX in this video.
dango-ninja also gets most of its ideas/style from FastAPI. Both are very good choices for developing APIs in Python.
Awesome tutorial. Can you please do one video with JWT token authentication.
Used the same code like you, but my min-w-[50%] doesn't make the table like yours. Only min-w-full works.
Tailwind CSS CDN not to be used in Production warning
gut. I want to use python function in html. Do you have an idea?
For example, I want to perform string operations on {{ film.name }} in index.html in this example. Or I want to import an additional library and use it in html. didn't work. it does not memorize the variable. Actually how can round(), time.ctime() be used in html for example. I want to apply it to data from table rows.
You would do this in the route definition of your python. I added the following to the main.py and then adding a calc.html in templates which rounds a number 4.555 and displays 5.
@app.get("/calc/", response_class=HTMLResponse)
async def calculation(request: Request):
calc = round(4.555)
context = {"request": request, 'calc': calc}
return templates.TemplateResponse("calc.html", context)
and you need to call from templates/calc.html your variable calc like {{ calc }} in the body
plz do more fastAPI and htmx
Thanks a lot! Will do very soon.
How about a streamlit as frontend and fastapi as backend tutorial? Rapid way to build a website. I would love to see it.
I had planned to do some Streamlit videos later on, but integration with FastAPI might be interesting - will consider that one, definitely!
@@bugbytes3923 Fascinating!