Index ¦ Archives ¦ Atom > Tag: python

Speed up Django static files

For a fairly easy performance win, and for something which makes dealing with old cached CSS something a thing of the past - enable ManifestStaticFilesStorage.

First of all you'll need to edit

# Use manifest static storage

Then you'll need to edit any templates …

Be careful with Django's .create_or_update()!

Although using Model.objects.create_or_update() with a Django model is extremely convenient, sometimes you might want to consider using it carefully with certain usage patterns.

Excessive Postgres WAL files

To allow point-in-time recovery (PITR), I usually setup Barman. Set it up on a remote server, get your Postgres instance to …

Hello Pelican!

After nearly 5 years of using Wordpress to power this blog, I've finally switched to an alternative - Pelican, a Python powered static site generator.

Why the switch? Maintaining a Wordpress site is annoying in the long term. Upgrades are needed on a regular basis for security patches, which is to …

© Alex Tomkins.