Luke Plant

Blog Info Luke Plant
Blog website Link

Enforcing conventions in Django projects with introspection

April 1, 2024 » Luke Plant » [Archived Version]

Some code and tips to combine Python and Django introspection APIs to enforce naming conventions in your Django models.

Read More

Django and Sass/SCSS without Node.js or a build step

June 1, 2023 » Luke Plant » [Archived Version]

How to use Sass/SCSS in a Django project, without needing Node.js/npm or running a build process

Read More

Test factory functions in Django

Nov. 25, 2022 » Luke Plant » [Archived Version]

Patterns for creating model instances in Django project test suites, and some anti-patterns

Read More

A Django PAGNI: efficient bulk properties

Aug. 25, 2021 » Luke Plant » [Archived Version]

When using Django database models and adding a calculated property of some kind, you should probably ensure it will be efficient in bulk even if that isn’t needed yet.

Read More

Announcement: Django Views - The Right Way

Aug. 19, 2020 » Luke Plant » [Archived Version]

Announcement of my guide to writing Django Views.

Read More

Double-checked locking with Django ORM

Feb. 28, 2020 » Luke Plant » [Archived Version]

How to implement the classic double-checked locking pattern with Django ORM/PostgreSQL.

Read More