Anže Pečar

Blog Info Anže’s Blog
Blog website Link

Django bulk_update memory issue

Oct. 12, 2025 » Anže’s Blog » [Archived Version]

Recently, I had to write a Django migration to update hundreds of thousands of database objects. With some paper-napkin math I calculated that I can fit all the necessary data in memory, making the migration much simpler than it would have been otherwise.

Read More

Migrating Gunicorn to Granian

Sept. 27, 2025 » Anže’s Blog » [Archived Version]

I migrated one of my Django apps from Gunicorn to Granian yesterday. Here is how the migration went and some of my thoughts on Granian and Gunicorn.

Read More

Disable network requests when running Pytest

July 6, 2025 » Anže’s Blog » [Archived Version]

Even though my team has been diligent with mocking external requests, a few web requests still managed to slip through after a few months of cranking out new features. We only noticed them when our tests started to fail. 🫣

Read More

Disable runserver warning in Django 5.2

June 24, 2025 » Anže’s Blog » [Archived Version]

Django 5.2 added a new warning that shows up when you start your development server with python manage.py runserver:

Read More

Autogenerating og:images with Jekyll

June 10, 2025 » Anže’s Blog » [Archived Version]

This blog has been a static site powered by Jekyll for over 13 years, and I’ve been happy with the setup. After all this time, I still enjoy using my code editor to write new posts and git commit and git push to publish them.

Read More