Blog

Viewing posts from July, 2018

django DurationField - (very) simple way to format (for template)

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:

django-stdimage new util class UploadToClassNameDirPKUUID

When playing with the thought of adding images to my books DB i thought: I need random names, and would like to scale them ..

How to get a nice populated list of Languages in your Django app

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.

tryton with postgresql on another server & permissions

A little follow-up to my post about setting up tryton on Gentoo:

Django, mod_wsgi, apache & Bad Request (400)

Just cuz it took me about 10 minutes to figure outwhy my deployed Django site was just giving me Bad Request (400)

Recent Posts

Archive

2023
2022
2021
2020
2019
2018
2014
2012
2011
2010
2009
2008
2007

Categories

Authors

Feeds

RSS / Atom