Blog

Here’s a list of my blog posts. Filter by topic:

Python: Python tutorials, tips, and coding best practices.

Python

Find and Fix N+1 Queries in Django Using AppSignal Logo
In this article, you'll learn about N+1 queries, how to detect them with AppSignal, and how to fix them to speed up your Django apps significantly.
Avoid Counting in Django Pagination Logo
This article looks at how to avoid the object count query in Django pagination. Appropriate for production environments.
Limiting Content Types in a Django Model Logo
Article looks at limiting content types when working with Django's generic relationships.
Approximate Counting in Django and Postgres Logo
This article looks at how to speed up counting with Django and PostgreSQL. It covers two different approaches.
How to deploy an application to Heroku? Logo
Learn how to deploy a Python-based app to Heroku and Back4app Containers.
Customizing the Django Admin Logo
Learn how to customize the Django admin site.
How to build and deploy a Python app? Logo
Learn about the basics of building and deploying Python apps.
Heroku Alternatives for Python-based Applications Logo
Learn about the best Heroku alternatives, their pros and cons.
Class-based vs Function-based Views in Django Logo
Differences between Django's class-based views (CBVs) and function-based views (FBVs).
Clean Code in Python Logo
Clean code, code standards, code principles and general guidelines on writing clean code.
Django and Pydantic Logo
02 February 2021
Learn how to use Pydantic with Django to build RESTful APIs.