When it comes to coding, Scribes is my editor of choice. So, this morning it wasn’t good news when Scribes author Lateef Alabi-Oki (Mystilleef) announced on twitter: « I haven’t found a way to build deb packages or update the Ubuntu PPA from Fedora. So Scribes’ Ubuntu PPA is going to be in a rot :-( »
I recently realized that class-based views are a beautiful, powerful tool to build clean, streamlined views that are easy to understand and maintain. Let me make my case with a trivial example. Let’s have a look at the canonical way to deal with a form in function-based views: What we have here is a good […]
At times, you need to perform some postprocessing after a view has been rendered. It could be some serious work, in which case you’d better arrange for it to be carried over by a separate thread, a separate process or even a separate server, or it could be just a quick update of the database. […]
In Django, when you create a relation using ForeignKey or a ManyToManyField, a corresponding backward relation is automatically created for you. This backward relation gets a reasonable default name. If you’d rather use a different name, you can specify one with the related_name parameter.
The recently introduced Send button, just like the original Like button, gives Facebook the ability to track the web pages you visit while being logged in to their site. Since I don’t like to surrender this kind of information, I chose to filter away the Like and Send buttons.
In the beginning, there is, invariably, the Hello world! post. Its well-known words caress the author more than the reader: « Welcome to WordPress. – they say in a mellow tone – This is your first post. Edit or delete it, then start blogging! » At times, it might be different. It might be some clever, or not-so-clever, attempt at mocking […]