talkpython / htmx-python-course Goto Github PK
View Code? Open in Web Editor NEWStudent details, source code, and more for our HTMX + Flask: Modern Python Web Apps, Hold the JavaScript course.
License: MIT License
Student details, source code, and more for our HTMX + Flask: Modern Python Web Apps, Hold the JavaScript course.
License: MIT License
Hi there,
While going through the course, I have noticed that the debugging mode in Pycharm doesn't activate the debugging mode in Flask anymore. However, if I replace the code below
with
being_debugged = sys.monitoring.get_tool(sys.monitoring.DEBUGGER_ID) is not None
It now works again.
If maintainers approve of this change I will prepare a PR :) I can also keep it backward compatible.
What do you think?
Tried to run the app from the ch4_starter_video_collector folder. I'm using anaconda, had to install pydantic but when I tried to run the app I got the error that Blueprint does not have a get method. I replace get with route in all 3 view files - and not the app is running fine. Just as a hint for others stumbling at this point. Excited to move this app to htmx. Thx for the course.
Lines 24-26 of https://github.com/talkpython/htmx-python-course/blob/main/code/ch4_app/ch4_starter_video_collector/infrastructure/request_dict.py read:
form = request.form
if isinstance(request.args, MultiDict):
form = request.form.to_dict()
Should request.args in line 25 be changed to request.form so it reads:
form = request.form
if isinstance(request.form, MultiDict):
form = request.form.to_dict()
?
I’ll love to see how things play in Django
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.