Viewing posts for the category Django
A recent system update prompted me to actually remove python3.9 .. which was used for my Django pages (including this one). An issue with a depreciated/removed feature in 3.10 made it needed to not just move from 3.9 -> 3.10 but also to upgrade packages.
This is more of a test post, but also keep in mind when upgrading python versions to also remove version numbers on some of the requirements.txt stuff ..
So I have a Django DurationField in my model, and needed to format this as HH:mm .. unfortunately django doesn't seem to support that out of the box.. after considering templatetags or writing my own filter I decided to go for a very simple alternative and just defined a method for this in my model:
Since I wanted to make an inventory app (that i will likely post the source of - as FOSS of course - at some point when I am done) I wanted to have a model for languages with their ISO 639-1 code.
Just cuz it took me about 10 minutes to figure outwhy my deployed Django site was just giving me Bad Request (400)