Issue #757

Django Migrations, Functional Programming, MVC, and More

Oct. 20, 2026

Django Migrations, Functional Programming, MVC, and More
#757 – OCTOBER 20, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Django ORM, Migrations and makemigrations
This tutorial builds a small coffee and tea store one migration at a time, then breaks it on purpose. You’ll backfill a required field, roll a migration back, untangle two developers’ migrations and fix a slow page with Django 6.1’s new fetch modes.
MY-SPACE.IO • Shared by Mirza Ishraq Yeahia

Functional Programming in Python: When and How to Use It
See how Python supports functional programming, what the paradigm actually is, and where it fits in the code you write day to day.
REAL PYTHON

MCP Auth That Passes the Security Review
When your customers connect AI agents to your product, their security team will have questions. PropelAuth has the answers built in: role-gated scopes, enterprise SSO through Okta and Entra ID, phishing-resistant consent screens, and an audit log of every agent connection. Learn More →
PROPELAUTHsponsor

Exploring the MVC Pattern in Python
Learn how the Model-View-Controller pattern organizes Python web apps, then build a small Flask app using models, views, and controllers.
REAL PYTHON course

Quiz: Exploring the MVC Pattern in Python
REAL PYTHON

Python 3.16.0 Alpha 1 Is Now Available
PYTHON.ORG

Python Bytes Podcast Hits Episode 500!
PYTHON BYTES

PyPy v8.0.1 Release
PYPY.ORG

Claude Code Course: Stop Copy-Pasting From ChatGPT
Build a complete Python CLI app from an empty directory with Claude Code, in two live 4-hour sessions on October 24–25. You’ll plan features, run tests, manage git, and debug AI-generated code.
REAL PYTHON


Articles & Tutorials


PyTorch Year in Review: OpenTeams’ Contributions in 2026
OpenTeams’ PyTorch team reviews their 2026 contributions, in a year when PyTorch received 58% more pull requests than the same period of 2025, a growing share of them written with AI coding agents. Highlights include a redesign of the symbolic interpreter in torch.compile, day 1 compiler support for Python 3.15, a new operator, and a build backend re-write!
ANDREW JAMES • Shared by Andrew James

Bayesian Optimization for Efficient Hyperparameter Search
Instead of testing every hyperparameter combination, Bayesian optimization uses results from earlier trials to decide what to try next. This hands-on tutorial builds it step by step with scikit-learn’s GaussianProcessRegressor and a custom Expected Improvement function, plotting the model’s predictions and uncertainty along with each point the search picks.
KHUYEN TRAN • Shared by Khuyen Tran

Pendulum and the Most Cursed + Operator in All of Python
Pendulum, a popular Python datetime library, has a + operator that inspects the call stack to decide which answer to give you. The post explains how it ended up there, and why the design behind it, a “drop-in” subclass of datetime, still matters for your code now that the hack itself has been patched.
ARIE BOVENBERG • Shared by Arie Bovenberg

Checking Email Reputation, and Allowing Outlook Again
Two years ago, PyPI prohibited Outlook email domains in the registration of new accounts due to a large malware campaign. With an update to how email reputation is calculated, addresses from outlook.com and hotmail.com can once more be used.
MIKE FIEDLER

Why Parquet Dominates Modern Data Engineering
How Parquet’s columnar layout, encodings, zstd compression, and row group statistics make it smaller and faster to read than CSV, measured on NYC taxi trips data with Polars, DuckDB, and PyArrow.
ORAL ERSOY DOKUMACI • Shared by Oral Ersoy Dokumaci

Gemini 4 Argon Draws a Python Reading a Book
Explore Gemini 4 Argon’s Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.
REAL PYTHON

Python Project Structure: How to Choose the Right Layout
Learn how to structure Python projects: pick between flat and src/ layouts, organize your code, and apply the patterns to CLI, web, and GUI apps.
REAL PYTHON

Docling vs LlamaParse: How to Extract PDF Tables in Python
Learn how to extract tables from a PDF in Python with Docling and LlamaParse, and compare local parsing against a cloud API on speed and cost.
REAL PYTHON

Quiz: Docling vs LlamaParse
REAL PYTHON

Strings and Character Data in Python
Work with Python strings using a rich set of operators and functions: string literals, the str() function, and the methods you’ll use most.
REAL PYTHON

How to Use Python: Taking Your First Steps
Take your first steps with Python. Install it, run your first program, and work with variables, data types, loops, functions, and errors.
REAL PYTHON course

11 Beginner Tips for Learning Python Programming
Python tips for beginners: the learning strategies and habits that take you from your first script to code you’re proud of.
REAL PYTHON


Projects & Code


Brought to you by Real Pythonsponsor
Online Python Training Created by Experts →

Full-Text Search for Django Models Using RediSearch
GITHUB.COM/SAADMK11 • Shared by Maksudul Haque

PyGithub: Typed Interactions With the GitHub API v3
GITHUB.COM/PYGITHUB

actually_interactive_rebase: TUI for Git Rebase
GITHUB.COM/TOLOMEA

hefty: Forecasting Tools for Solar, Wind, and Load
GITHUB.COM/WILLIAMHOBBS

django-benchmark: Django Performance Benchmark Profiler
GITHUB.COM/JUSTINMAYER

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 21, 2026

Swiss Python Summit 2026
October 22 to October 24, 2026

PyCon Panamá 2026
October 22 to October 24, 2026

Django Girls Ho 2026
October 22 to October 24, 2026

PyHo 2026
October 23 to October 25, 2026

PyBeach 2026
October 24 to October 25, 2026

FastAPI Conf 2026
October 28 to October 29, 2026

PyConFR 2026
October 29 to November 2, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.