Feed: Anže’s Blog

Blog page

Blog Anže’s Blog
RSS 2.0 Feed Anže’s Blog
web https://blog.pecar.me/
Last Update04.02.2026
Posts31

No Downtime Deployments with Gunicorn

Jan. 2, 2024 » Anže’s Blog » [Archived Version]

This article shows how to achieve zero-downtime deploys of your Django, Flaks, or FastAPI app using only Gunicorn. It explains how to reload the Gunicorn process with the -HUP signal using systemd or the kill command directly making sure no requests are dropped during the upgrade.

Read More

No Downtime Deployments with Gunicorn

Jan. 2, 2024 » Anže’s Blog » [Archived Version]

This article shows how to achieve zero-downtime deploys of your Django, Flaks, or FastAPI app using only Gunicorn. It explains how to reload the Gunicorn process with the -HUP signal using systemd or the kill command directly making sure no requests are dropped during the upgrade.

Read More

Fixing _SixMetaPathImporter.find_spec() not found warnings in Python 3.10

Nov. 16, 2022 » Anže’s Blog » [Archived Version]

I am helping a client upgrade their Django application to Python 3.10 and we encountered this mysterious warning when running the app on the new Python version: <frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module() To make matters worse, this warning doesn’t only show up once, but more than 200 times when we run python manage.py runserver. It completely floods the console output 😱 A fair amount of googling revealed that the w…

Read More

Upgrading Django app to Python 3.10

Aug. 11, 2022 » Anže’s Blog » [Archived Version]

At my day job we have a Django app with almost 500_000 lines of Python code that was written over the last decade. Ever since we migrated to Python 3.7 (almost seven months after Python 2 EOL 😓), we’ve tried to keep on top on Python upgrades. We migrated to 3.9 at the end of last year, skipping 3.8 completely. It was now time for us to jump on Python 3.10.

Read More

Integer Overflow Error in a Python Application

July 2, 2022 » Anže’s Blog » [Archived Version]

How we found and fixed an integer overflow error in our Django app.

Read More

Integer Overflow Error in a Python Application

July 2, 2022 » Anže’s Blog » [Archived Version]

How we found and fixed an integer overflow error in our Django app.

Read More

MySQL Performance Degradation in Django 3.1

Jan. 21, 2022 » Anže’s Blog » [Archived Version]

Upgrading from Django 2.2 to Django 3.2 caused a severe performance degradation with MySQL 5.7 due to a bug introduced in Django 3.1.

Read More