Baptiste Mispelon

Blog Info blog.bmispelon.rocks
Blog website Link

Sentry initialization in a Django project

April 6, 2024 » blog.bmispelon.rocks » [Archived Version]

Sentry initialization in a Django project Published on April 6th At $DAYJOB we use Sentry to monitor errors in production. It works really well but our particular setup caused an annoyance that was surprisingly tricky to fix. The annoyance Following Sentry's official documentation, we added the following code to our settings file: import sentry_sdk sentry_sdk.init(...) # credentials etc This works perfectly fine, and once that …

Read More

A Pony and a Walrus Walk into a Library

March 28, 2024 » blog.bmispelon.rocks » [Archived Version]

A Pony and a Walrus Walk into a Library 🦭 + 🐴 + 🏛️ = ❓ Published on March 28th TLDR; I made a library that adds the walrus operator (:=) to Django templates: django-walrus. The walrus operator The walrus operator := (officially called an "assignment expression") was introduced to Python in the 3.8 release (October 2019). (It's called "walrus" because := looks like the eyes and the tusks of a walr…

Read More