TIL - You can’t set permissions in Django migrations
Setting permissions in a datamigration does not work. Why?
Automating Django application configuration
A novel way to configure a Django application with a single CLI command, withouwt editing project files directly
Automating Django application configuration: an in-depth view
What’s AST? How django-app-enabler works? A detailed step-by-step guide at the inner working details of django-app-enabler and how it applies AST to manipulate a django project configuration
Cleaning up you test suite with pytest parametrize
Some notes regarding pytest.mark.parametrize, a feature that can change the way you plan your tests
TIL - 🧹 unimport linter formatter
what if you (like me) don’t like to clean up your code while in the zone, but you value a linted and well formatted codebase?
TIL - 🎁 Extracting modules provided by installed package
How do I get at runtime the list of modules installed by package? Use setuptools, Luke!
TIL - Submitting a form from an external button
You can submit a form from a button not included in the form itself
My Python linting setup in 2020
“How I Learned to Stop Worrying and Love the automated code formatting”
Converting a django CMS plugin to a different model
Migrating django CMS plugins data from one model to another, for example during an upgrade, is a bit tricky. Thansk to its polymorphic nature, though, it’s not complicated to achieve, one you know the underlying structure.
My experience with Hugo
A brief description of my first experience with Hugo and the stack that I use to publish this site
TIL - Accessing sass variables in JavaScript 🤯
How to leverage webpack to import sass variables in JavaScript