django-planet

Feed: Luke Plant

Blog Luke Plant
RSS 2.0 Feed Luke Plant
web https://lukeplant.me.uk/blog/categories/django/
Last Update11.22.2024
Posts15

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

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

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