Feed: Luke Plant

Blog Luke Plant
RSS 2.0 Feed Luke Plant
web https://lukeplant.me.uk/blog/categories/django/
Last Update02.15.2026
Posts17

Help my website is too small

Dec. 19, 2025 » Luke Plant » [Archived Version]

How can it be a real website if it’s less than 7k?

Read More

Keeping things in sync: derive vs test

June 28, 2024 » Luke Plant » [Archived Version]

There are times when we need to stop trying to make everything sync automatically, and just test that it is synced. Tips for Python and web dev.

Read More

pyastgrep and custom linting

May 23, 2024 » Luke Plant » [Archived Version]

Methodology and sample code for using pyastgrep to do custom linting tasks on Python source code.

Read More

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

Re-using CSS for the wrong HTML with Sass

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

A trick I learned for using someone else’s CSS without changing your HTML, or their CSS

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

Python’s “Disappointing” Superpowers

Feb. 1, 2023 » Luke Plant » [Archived Version]

A response to Hillel Wayne’s “I am disappointed by dynamic typing”

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

Raising exceptions or returning error objects in Python

June 6, 2022 » Luke Plant » [Archived Version]

How returning error objects can provide some advantages over raising exceptions in Python, such as for static type checking tools.

Read More

REPL Python programming and debugging with IPython

May 4, 2022 » Luke Plant » [Archived Version]

The flows I use for exploratory programming using a REPL and their advantages.

Read More