Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
astuces_django [2010/07/21 11:04] – created ginko | astuces_django [2010/10/12 10:50] (current) – ginko |
---|
* Controler les transactions [[http://docs.djangoproject.com/en/dev/topics/db/transactions/#controlling-transaction-management-in-views]] | * Controler les transactions [[http://docs.djangoproject.com/en/dev/topics/db/transactions/#controlling-transaction-management-in-views]] |
* L'API de pagination [[http://www.djangoproject.com/documentation/models/pagination/]] | * L'API de pagination [[http://www.djangoproject.com/documentation/models/pagination/]] |
| * [[http://www.djangobook.com/en/beta/chapter04/|Chapitre sur les templates du Djangobook]] |
| * [[http://www.djangobook.com/en/2.0/chapter07/|Chapitre sur les forms du Djangobook]], on retiendra cette astuce pas mauvaise: la redirection après validation d'un formulaire (évite le "double postage" par rafraichissement de la page). |
| * Générer du contenu non-HTML [[http://www.djangobook.com/en/1.0/chapter11/|Chapitre du Djangobook sur le sujet]] |
| * Faire un [[http://push.cx/2007/django-template-tag-for-dictionary-access|filter]] pour accéder à des attributs d'un objet dans un dictionnaire dans un template |
| * [[http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/|Lancer un script Django en StandAlone]] |
| * [[http://snippets.dzone.com/posts/show/7936|Changing field properties on init]] |
| * [[http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/|Dynamic form]] |
| * [[http://collingrady.wordpress.com/2008/07/24/useful-form-tricks-in-django/|Useful form tricks]] |