16:15 the webpage shows "404 Not found" when I go to "/posts". Any idea...? Seems like the folder's name become a part of url on his instruction but not on my codes. Is it because I am using windows computer..?
What about returning a send_file()? im having some issues doing this with the url_for, CODE: Download this switches the button out for the files binary out put but id like it to just function as a button the the route download
Error with DB import: File "/home/**/flasky/server.py", line 2, in from .db import sample_db ImportError: attempted relative import with no known parent package
Also for anyone using windows, point sys.path to the root folder where db is saved for example db was in folder crud-htmx-flask, so import sys sys.path.append("C:\crud-htmx-flask") from db import sample_db
The best tutorial i've seen using flask + htmx. Thank you
Great job of explaining using htmx with Flask. Keep up the good work.👍
Thanks for this tutorial it was really really helpful
Great explanation, really helped me take on new projects!
Been struggling with this. You explained it so well. Thanks!
My guy. You are meant to teach
Respect 100
Looking forward to advanced flask htmx series
Or fastapi htmx series
First 50 mins - very good presented and logically sound tutorial. Last 30 mins tutorial feels rushed and become hard to follow. Ganbatte Kudasai!
Such a useful video. Thank you!
But it ends so anti-climactic... :)
16:15 the webpage shows "404 Not found" when I go to "/posts". Any idea...? Seems like the folder's name become a part of url on his instruction but not on my codes. Is it because I am using windows computer..?
What about returning a send_file()? im having some issues doing this with the url_for, CODE: Download this switches the button out for the files binary out put but id like it to just function as a button the the route download
i think you need to use trigger property also
Can this call a java backend restful api . I am a java backend lead working somewhere . Asking for a personal project
HTMX can call any api as long as it returns HTML :)
you look like you've got impeccable taste in anime
i think you forgot to put the post validation
the validation was the only that I want to see 🤣and it never comes. But very nice Tutorial! ❤❤❤
Error with DB import:
File "/home/**/flasky/server.py", line 2, in
from .db import sample_db
ImportError: attempted relative import with no known parent package
Solution:
import sys
sys.path.append("/home/**/flasky/")
from db import sample_db
@@alexandrgidrevich986Thank You so much for this ! I ran into the same issue... your solution worked😊
Also for anyone using windows, point sys.path to the root folder where db is saved for example db was in folder crud-htmx-flask, so
import sys
sys.path.append("C:\crud-htmx-flask")
from db import sample_db