かぴぶろぐ

またかぴったかと思った・・・(´A`;)

djangoの記事一覧

etc (全34件) Python (全53件) Linux Unix (全94件) Gimp (全1件) Mysql (全11件) COREBlog (全3件) Zope (全30件) Postgres (全12件) JAVA (全10件) PHP (全5件) django (全8件) Plone (全4件) Ruby on Rails (全2件) サンプルコード (全7件) CSS (全3件) javascript (全5件) WebDesign (全2件) Windows (全2件) Pylons (全3件) Centos (全0件) Eclipse (全1件) SQL (全1件) リンク集 (全3件)

django 情報サイト

Model exampleshttp://www.djangoproject.com/documentation/models/[django-ja:274] Re: Model としてファイルシステムを使う場合http://www.mail-archive.com/django-ja@googlegroups.com...

続きを読む続きを読む

django サンプルアプリ

とりあえず使えそうなのをぺたぺたGoogle Charts template tags for Django

続きを読む続きを読む

Django Admin list_displayの「ManyToManyField」表示について

Adminのlist_displayはManyToManyFieldを表示できない。そこで、カスタムメソッドを使って表示するやり方。def selected_tags(self): '''return selected tags''' tag_titles = [] for tag_obj in self.tags.all(): tag_titles.append(tag_obj.title) return tag_titlesこれをlist_display = ('title', 'url'...

続きを読む続きを読む

Django Viewについての勉強

templateでcontextに変数一覧を表示する{% debug %}でイケる。{% debug testsite.polls %}

続きを読む続きを読む

Django runserverにSQLクエリを吐かせる方法

まず、approotにdebugディレクトリを作り、その中にdebug用pyを作る。mkdir debugcd debugtouch __init__.pyvi db.py[db.py]from django.conf import settingsfrom django.db import connectionclass DBDebugMiddleware: """ "DBDebug" middleware for debug out O/R Mapper's SQL: """ def pr...

続きを読む続きを読む

lighttpd + fcgi + Django環境構築メモ

kill -INT `cat /var/run/django.pid`

続きを読む続きを読む

Django フィールド型早見表

モデルフィールド フォームフィールド AutoField フィールド上に表示されません BooleanField BooleanField CharField max_length がモデルフィールドの maxlength と同じ値の CharField CommaSeparatedIntegerField CharField DateField DateField DateTimeField DateTimeField Emai...

続きを読む続きを読む

全8件
1ページ目/全1ページ
ページへ