Hacker News with Generative AI: Django

Modern JavaScript for Django developers (saaspegasus.com)
JavaScript is the lifeblood of the modern web application. You need it to do anything remotely complex on the web.
Russian hackers nearly killed my Django based business (reddit.com)
My wife and I were hiking through the scenic hills of Belgium when I received a concerning email from Amazon Web Services (AWS). The email, titled "Amazon SES Complaint Review Period for AWS Account []", contained the following warning:
Django and Postgres for the Busy Rails Developer (andyatkinson.com)
About 10 years ago I wrote a post PostgreSQL for the Busy MySQL Developer, as part of switching from MySQL to Postgres for my personal and professional projects, wherever I could.
Django: Fix a view using a debugger with breakpoint() (adamj.eu)
Python’s breakpoint() function opens its debugger, pdb, which pauses the program and allows you to inspect and modify things.
Async Django in Production (jonathanadly.com)
We believe async Django is ready for production. In theory, there should be no performance loss when using async Django instead of FastAPI for the same tasks. Django's built-in features greatly simplify and enhance the developer experience. Using async involves some complexity, as the entire code path must be async. In AI workloads, this complexity is often a worthwhile tradeoff.
The Practical Guide to Scaling Django (slimsaas.com)
Most Django scaling guides focus on theoretical maximums. But real scaling isn’t about handling hypothetical millions of users - it’s about systematically eliminating bottlenecks as you grow. Here’s how to do it right, based on patterns that work in production.
Following up "Mother of all Htmx demos" (guillot.me)
Initially I wanted to publish such a blog post a year ago. It had been a crazy year since DjangoCon Europe 2022, and I thought that writing some follow-up a year after that talk would be relevant. Well you know what, the year after that has been even crazier. I am so exhausted that I had to quit the awesome company called Contexte after more than 7 years.
Show HN: Bringing component-based design to Django templates (django-cotton.com)
Zero Downtime Django Deployments with Multistep Database Changes – Johnny Metz (johnnymetz.com)
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in this context, and how to navigate common change scenarios effectively in Django.
Migrating In-Place from PostgreSQL to MySQL (yelp.com)
The Yelp Reservations service (yelp_res) is the service that powers reservations on Yelp. It was acquired along with Seatme in 2013, and is a Django service and webapp. It powers the reservation backend and logic for Yelp Guest Manager, our iPad app for restaurants, and handles diner and partner flows that create reservations.
DjangoCon US 2024 Recap (katherinemichel.github.io)
DjangoCon US 2024 took place from September 22-27 in Durham, North Carolina at the Durham Convention Center. It was the seventh DjangoCon US I’ve had the privilege of attending and an absolute blast!
If the Django Software Foundation had $1M (jacobian.org)
A couple weeks ago I gave a talk at DjangoCon US about the finances of the Django Software Foundation. I wanted to give folks a high-level understanding of our current financial situation, and then imagine a world where we had a substantially-larger budget.
Nanodjango (simonwillison.net)
Richard Terry demonstrated this in a lightning talk at DjangoCon US today. It's the latest in a long line of attempts to get Django to work with a single file (I had a go at this problem 15 years ago with djng) but this one is really compelling.
DJP: A Plugin System for Django (simonwillison.net)
DJP is a new plugin mechanism for Django, built on top of Pluggy. I announced the first version of DJP during my talk yesterday at DjangoCon US 2024, How to design and implement extensible software with plugins. I’ll post a full write-up of that talk once the video becomes available—this post describes DJP and how to use what I’ve built so far.
Nanodjango (github.com/radiac)
Full Django in a single file - views, models, API ,with async support. Automatically convert it to a full project.
Taming the beast that is the Django ORM – An introduction (davidhang.com)
Show HN: PassManagerWeb, A Password Manager Written in Django (github.com/PassManagerWeb)
HTML-ivating your Django web app with Htmx, AlpineJS, and streaming HTML (youtube.com)
What's up Python? Django get background tasks, a new REPL, bye bye gunicorn (bitecode.dev)
Django web app from scratch (gibney.org)
Django SQLite Production Config (pecar.me)
Optimal SQLite Settings for Django (gcollazo.com)
Django Enhancement Proposal 14: Background Workers (djangoproject.com)
Building a full Django project, starting with a single file (mostlypython.com)
Show HN: Bridge – Automatic Infrastructure for Django (github.com/Never-Over)