Most Django models
are managed, and Django will take care of the entire lifecycle.
There are times when working with an external database that it can be useful to use unmanaged
models.
Combined with Django’s inspectdb
command, we can use it to interface with external systems.
Read More →
I have now been in Japan for 11 years.
I still sometimes laugh at how I thought it was a good idea to move between Christmas and New Years, but it ultimately worked out in the end.
Partially due to this, my 来日 (arrival in Japan) anniversary is also a good year-review time.
Though I have not accomplished nearly as much as I had naively hoped for, I still think overall it was a good year.
Hopefully I will be able to show more progress in 2026.
Read More →
Python has a webbrowser
module that allows scripts to open a webbrowser.
In the past, I have often used this for scripts that create some kind of new web resource, so that it will automatically open the page after creation.
While working on one of my headless servers, I became curious about how it works and how I might be able to tap into it.
Read More →
With Django 6.0
a new tasks framework
was added.
Instead of being a full framework like celery
, it provides the core interface for other tools to build off of.
I created django-inspect-tasks
to help me test.
Read More →
After finding the repo-review
, one of the first checks I wanted, was to check some of the justfiles
that I have started using across projects.
Read More →
Django
has a System check framework
that is useful for doing automatic checks.
I wanted something similar that I could use as I update some PyPI projects
.
Thanks to asking a question on Mastodon
, I was introduced to Scientific Python’s repo-review
tool.
Read More →
The default for Forgejo
is to use local storage but I wanted to migrate to Linode (Referral
) Object Storage for better scaling since I am using a lower spec VM for my instance.
I found the post Upgrading Forgejo with S3 Object Storage
which gave me a good starting point.
Read More →
Similar to how easy it is to run uv add <package> to our python
projects, I have recently been brainstorming (hallucinating?) about a workflow for django
with javascript
libraries.
Read More →
Python projects support a list of URLs when creating your pyproject.toml, however I often forget the specific categories.
Similar to my add-classifiers
project, I have created uvx add-url as a helper.
Read More →
mermaidjs
is a useful tool where one can turn text into diagrams easily.
I have used it on many projects, but have long wanted a way to click on an element and bring up additional information.
Using htmx
and the bootstrap5 modal api
, I have figured out a way to do it.
Read More →