Resurrecting the Original Django Book
The original DjangoBook is now online again at DjangoBook.com
All posts in the "python" category
The original DjangoBook is now online again at DjangoBook.com
An in-depth look at the uv package manager, why it is so popular, and how to use it today.
Thoughts on a fun week in Chicago, favorite talks, sprints, and more.
A written guide to my DjangoCon US talk on deploying machine learning models with Django.
Tips on having the best conference experience.
Recording a recent podcast appearance with Simon Willison, Adrian Holovaty, Will Vincent, Jeff Triplet, and Thibaud Colas.
An up-to-date list of the best books for learning Python.
A week behind the booth, around the city, and soaking up the European Python vibes.
What is AI/ML and how is it changing our world right now.
Reflections on attending the conference in Pittsburgh.
An analysis of the current AI-powered text editor space and predictions for the future.
Reflections on attending the conference in Dublin, Ireland.
Presenting my DjangoCon Europe keynote talk to the Boston Python Meetup.
Announcing the release of Django for APIs, covering Django REST Framework and more.
Evaluating LLMs on the path to true artificial intelligence.
Recapping my years as Django Software Foundation Treasurer.
Thoughts and links from this year's DjangoCon US conference in Durham, NC.
List of current books and course on the Flask Python web framework.
A link to the slides and thoughts on improvements for next team on this topic.
What's new in the book
How to install Python on Windows/macOS/Linux/Chromebook
On the Django community, organizations, and people behind the Django web framework.
An up-to-date list of Python programming podcasts.
Launching a new podcast with Carlton Gibson focused on Django.
An up-to-date list of online Python video tutorials.
An up-to-date list of online Django video tutorials.
An interview with Michael Kennedy on learning and teaching Django.
Web frameworks make life much easier when building robust, scalable web applications. Why reinvent the wheel and build everything from scratch yourself? They are used by everyone from small startups...
Python has a special syntax, * (single asterisk) and ** (double asterisks), that lets you pass a variable number of arguments to a function. By convention, these are written as...
An interview with Tobias Macey on learning and teaching Django.
An update 6 months and one more book later on what I've learned.
Djangox helps developers launch new Django projects quickly with a complete user authentication flow, custom user model, social authentication options, and more.
Learn how to change a model field name in your serializer using source.
What I've learned writing and self-publishing a book on web development with Django.
If you’re new to Python perhaps you’ve heard there are two major versions out in the wild: Python 2 and Python 3. So which should you learn and why is...
The Greatest Common Divisor (GCD) is the largest integer that evenly divides two numbers. For example:
Consider the following Python code. What is the output?
Within the Python docs essays section is a wonderful article by Guido van Rossum on optimizing code with Python. You should read the whole thing but I’m highlighting the bits...
A short tutorial on Python's built-in zip() and longest_zip() functions.
Imagine you are visiting your friend Guido’s house and he asks you to find his favorite book from the Harry Potter series, “The Prisoner of Azkaban.” How would you do...
Python’s slice notation is straightforward enough, but it does have some strange edge cases.
Check out the following Python code:
Python has a built-in help function help() that provides an interactive guide to the official Python documentation. Even though I’ve been programming in Python for years, I only just started...
Binary search is typically one of the first algorithms taught to CS students. It is very powerful, prevalent, and yet one of the easier-to-understand algorithms. With binary search, even if...
In Python, lambda is a fancy way to define a small anonymous function inline. You never have to use lambda expressions, but they can make your code more concise in...
In Python programming, pass is a null statement typically used as a placeholder. In contrast to a comment statement which is ignored by the Python interpreter, a pass statement is...
List comprehensions in Python are a great feature but also a little hard to wrap your head around at first. Basically a list comprehension is a one line for loop...
Django is commonly referred to as a “batteries included” framework that provides far more functionality than you will use in any given Web project. As a result, if you are...
Setting up your computer for web development is tricky, even for a professional programmer. As a beginner, it’s likely you’ve had trouble along the way.
Static site generators combine the best of both worlds: a local server lets you use templates to easily manage the design and content on your site but ultimately all you...
tl;dr Use a custom Django template filter.