Author: zakj Posted: April 4, 2007 Language: Python Version: .96 Score: 24 (after 24 ratings) Download Raw A subclass of HttpResponse useful as a shortcut in views; it chooses the correct JSON serializer based on whether or not it is passed a QuerySet. from django.core.serializers import json, serialize from django.db.models.query import QuerySet from django.http import HttpResponse from django.ut
Author: skam Posted: May 13, 2007 Language: Python Version: .96 Score: 25 (after 25 ratings) Download Raw newforms widget for autocompleting text fields using jquery autocomplete plugin: http://jquery.bassistance.de/autocomplete/ to be implemented: - store the pk value into an hidden field - handling ChoiceFields and many others massimo dot scamarcia at gmail.com 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1
Author: SmileyChris Posted: March 2, 2009 Language: Python Version: 1.0 Score: 65 (after 67 ratings) Download Raw Save this as smart_if.py in the templatetags folder of one of your apps. Then a simple {% load smart_if %} replaces the boring built-in Django {% if %} template with the new smart one. 7 May 2009: Was asked about whether it handles combination of and/or. It does, added a test to show i
Author: amitu Posted: March 20, 2009 Language: Python Version: 1.0 Score: 1 (after 1 ratings) Download Raw def sqltodict(query,param): from django.db import connection cursor = connection.cursor() cursor.execute(query,param) fieldnames = [name[0] for name in cursor.description] result = [] for row in cursor.fetchall(): rowset = [] for field in zip(fieldnames, row): rowset.append(field) result.appe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く