Archive for [<Tag: django>]

  • MongoDB & Stuff

    For quite some time I wanted to write something with a document-based database system again. My last trip into this area was in Feb. 2009 when I needed a small feed-aggregator for a local Barcamp and wanted to provide a live-ticker for all the tweets and photos related to that event. Back then I went with CouchDB with its slick web interface and HTTP API, but it is by far not the only attractive system on the block.

    Read more about "MongoDB & Stuff" ...

    2009/09/27 at 00:10:13

    2 comments

  • Django 1.2a1 has a message for you

    Today, Django 1.2 alpha1 was released and it comes with a ton of new features compared to the 1.1 branch. You can read up about them in the release notes but I want to take a quick look at probably my favorite addition: The new messaging framework. Why this and not the support for multiple databases? Well, I see myself using messaging in many more places than multiple databases ;-)

    Read more about "Django 1.2a1 has a message for you" ...

    2010/01/06 at 15:00:56

    0 comments

  • Options

    Well, back from inactivity ... at least I hope so. Finally Xmas holidays so I really might find the time to do something else but work for university stuff (although there is enough to do on that front as well). I guess half of my free time will be spent on playing games like "Burnout Revenge" or "Viva Pinata" for the Xbox360. But I guess I will keep the rest to do some work with Ruby On Rails.

    For the last couple of months I've been scouting a little bit around to find the web-framework that fits my needs the most. Well, I guess, something like this doesn't really exist. I've done a little bit with Django and now I've finally some useful web-project to work on again and I will use this opportunity and write the same page in Django and Ruby On Rails (and perhaps also in Symfony).

    Read more about "Options" ...

    2006/12/18 at 00:14:42

    1 comments

  • Deutsches Übersetzungsprojekt für die offzielle Django-Dokumentation

    So großartig die offizielle Django-Dokumentation auch ist, es wäre manchmal hilfreich, wenn sie auch auf Deutsch verfügbar wäre. Sei es, weil man sichergehen möchte, dass man ein Konzept wirklich verstanden hat oder auch nur, um Personen ohne guten Englischkenntnissen dein Einstieg zu erleichtern.

    Read more about "Deutsches Übersetzungsprojekt für die offzielle Django-Dokumentation" ...

    2009/05/04 at 09:10:00

    5 comments

  • Move a Django site to PostgreSQL: check

    When I moved over from Dreamhost to Slicehost, one of the (minor) motivators was the option to use something different than MySQL. Don't get me wrong, though: MySQL is a nice system, fast, relatively memory-efficient and so on. But what drove and still drives me nuts is that not every storage engine within MySQL supports transactions. MyISAM can be as fast as it gets, if it lacks transaction support, I won't use it for at least some of my tables. And having to manually check that every time I write a new app really started to annoy me. But how to move a site like this, that is using Django, from one database system to another (or to be specific, PostgreSQL in this scenario) as simply as possible?

    Read more about "Move a Django site to PostgreSQL: check" ...

    2008/07/26 at 22:50:26

    2 comments

  • django-flatblocks 0.2.0

    While working on a small site for my family where I'm using flatblocks (and which originally actually led me to create that project to begin with) I also needed a simple view for editing a flatblock. Since this is something I can absolutely see my self needing on every single project I use flatblocks, I've now also included that view in django-flatblocks.

    The other change included in version 0.2.0 is that you can finally localize the fieldnames of models. So far the only translation included is the German one but I definitely welcome patches with more translations :-)

    So that's basically it for 0.2.0. I plan to make such small releases more or less right after adding a new feature so that you can easily specify a real version number in your dependencies.

    As always you can get this release on PyPI. There you can also find detailed descriptions of the new view (or take a look at the docstring of flatblocks.views.edit).

    Another issue I've been thinking about for the last couple of days is if this project might benefit from an issue tracker. For me personally the only real option here would be to move over to bitbucket.org since I actually like hg quite a bit and that service has a very simple and elegant issue tracker. Let me think about this a little longer for now ;-)

    2009/02/24 at 11:01:03

    2 comments

  • GenericForeignKeys with fewer queries

    When working with generic relations in Django you have to be quite careful not to end up with n+1 queries for a simple fetch of n elements. The reason for this is that internally a generic relation is not really a true foreign key (naturally) but just an id combined with a foreign key to a content-type. But there are some ways around this problem. Among them a quite simple one: Doing the actual content-loading by yourself.

    Read more about "GenericForeignKeys with fewer queries" ...

    2008/08/13 at 18:36:40

    14 comments

  • django@zerokspot: The syndication framework

    Welcome to the 2nd installment of my little series where I write about what I learnt today when trying to implement zerokspot.com using Django. This time it will be all about Django's contributed syndication framework

    Read more about "django@zerokspot: The syndication framework" ...

    2007/03/31 at 00:41:00

    0 comments

  • Customizing newforms

    You like newforms but are a little bit uncertain how to style your forms using CSS with form.as_ul? Well, if you want more CSS classes to style upon, here a simple way on how to get them the easy way.

    This mini-tutorial will show you how to add CSS classes to the help text and position the errorlist differently for fields in a newform-Form rendered with as_p() (although this also should apply to all the other rendering methods).

    Read more about "Customizing newforms" ...

    2007/06/01 at 13:09:36

    2 comments

  • OOP Views for Django now on GitHub

    About a week ago I wrote about bringing some OOP into Django views and also posted some code for that. Since I use this in one project and want to move it also into some other project of mine, I've put this (together with some very simple pagination templatetag) into its own pluggable app and uploaded it github for everybody to slap me around for my coding style ;-)

    So if you want to use this code, simply install the app available here (or just import the django_zsutils.utils.oopviews module).

    2008/04/28 at 08:41:50

    1 comments

See all tags used for weblog posts