django-planet

Feed: Luke Plant

Blog Luke Plant
RSS 2.0 Feed Luke Plant
web https://lukeplant.me.uk/blog/categories/django/
Last Update05.17.2024
Posts13

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

Test smarter, not harder

Sept. 4, 2020 » Luke Plant » [Archived Version]

Tips for winning the automated testing battle.

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