PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Django: launch pdb when a given SQL query runs

This article discusses a technique for debugging Django applications by using database instrumentation to identify and break on specific SQL queries. This allows you to trace the execution flow back to the code that triggered the query, even when it's not immediately obvious.

https://adamj.eu/tech/2024/12/05/django-sql-breakpoint/
Helping Securing the Python with Mike Fiedler

The episode discusses the security challenges faced by PyPI, including account takeovers and typo-squatting, highlighting the importance of measures like 2FA and collaboration with security researchers. It also explores the debate between maintaining legacy systems and greenfield development, emphasizing the complexities of managing critical infrastructure and the often underestimated ro...

https://share.transistor.fm/s/db1d4d9f
Try This if You Don’t Like Python’s Exception Handling

Struggling with Python's unpredictable errors and None checks? This video shares a unique approach to making your code cleaner and more reliable using the returns package—no complicated try-except nests required.

https://www.youtube.com/watch?v=qkxf583t4Vc
Single-file Django Apps with nanodjango

Discover Nanodjango: a project simplifying Django development with single-file apps, APIs, and seamless transition to full projects. Perfect for quick experiments and sharing prototypes.

https://lincolnloop.com/insights/single-file-apps-with-nanodjango/
Ask HN: Who's building on Python NoGIL?

https://news.ycombinator.com/item?id=42468594
Build your Jupyter dashboard using Solara

This article demonstrates how to create an interactive dashboard in Jupyter using Solara, a Python framework built on ipywidgets. It guides readers through building a crime data visualization dashboard with filtering capabilities, charts, and maps, showcasing Solara's reactive and declarative nature for efficient dashboard development within Jupyter environments.

https://blog.jupyter.org/build-your-jupyter-dashboard-using-solara-569fa5b16e9c