Force Django Admin into a Single Language

In admin/middleware.py: Then register the middleware in settings/__init__.py: What’s happening? We are running this middleware before every request where we check if the path matches our admin section’s path, and then temporarily changing the language with translation.override(‘en’), which is changed back to the previous language after the middleware runs. Confirmed as working in Django 3.2, […]

Prevent Email suggestion autocomplete in Chrome

Chrome’s version as 2023/11/16 has a little quirk – it will “helpfully” provide a list of emails for you to choose from for certain input fields. It appears that any field with “email” as part of the “name” argument will result in the following: You can disable the functionality by changing the name of the […]

This Garbage Post Belongs on Facebook

I was dead-set on making a sandwich for dinner tonight, but ending up burning the last two pieces of bread while toasting them because I was engrossed by a video about a salt mine and lost track of time. The resulting carbon wafers went into the trash. All of the sandwich ingredients were already laid […]