-
From delicious.com1 week ago
-
From ianlewis.org
'self' ForeignKeys always result in a JOIN
I came across a little annoyance in Django today. I found that ForeignKeys that reference 'self', i.e. they point to the same table, always result in a join in a filter. Take this...2 weeks ago -
From ianlewis.org
Django template2pdf
This is cool Django application from Yasushi Masuda which allows you to render data to a pdf using trml2pdf. template2pdf provides a generic view called direct_to_pdf which will re...2 weeks ago -
From delicious.com
Transifex
Transifex is a highly scalable localization platform with a focus on integrating well with the existing workflow of both translators and developers. It aims in making it dead-simp...2 weeks ago -
From google.com
[Python][Django]django.core.urlresolvers.resolveの使い方
直接使うことなんてほとんどない、resolve関数の使い方。 URLからビュー関数を得る。 >>> from django.core.urlresolvers import resolve >>> from django.http import HttpRequest >>> func, args, kwargs = resolve('/') >>> r...1 month ago -
From ianlewis.org
Django modelformset_factory便利
Django は複数のフォームのデータを同時に扱えるために、FormSetsというものを用意しているんですけど、実は、ModelFormのFormSetでも使える。クエリーの結果のデータのModelFormを一個一個、一つのページに出すにはこんなコードを書ける。 from django.forms.models import modelformset_fac...1 month ago -
From delicious.com
simonw's django-safeform at master - GitHub
CSRF protection for Django forms.2 months ago -
From google.com
Fixing Django Management Commands
Fixing Django Management Commands. Zachary Voase proposes dramatically improving Django’s management command API for Django 1.3. I’m in favour—management commands are one of the on...2 months ago -
From ianlewis.org
daemontoolsを使ってdjango fastcgiのデーモンを設定する
daemontoolsの上にdjango fastcgiを使うのは簡単にできるけど、正しいユーザとして、フォアグラウンドに起動するにはbashとdaemontoolsの設定する必要がある。 フォアグラウンドに起動するには、daemonize=falseを指定する必要がある。 それで、起動するデイモンはユーザを指定するオプションがないとrootユーザとして、起...2 months ago
Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development. About Me...
