class SampleModel(models.Model): sample_field = CharField(max_length=10) class CocomoForm(ModelForm): sample_field = CharField(widget=TextInput(attrs={'readonly':'readonly'})) class Meta: model = Cocomo バリデーション処理の呼び出し順
djangoで認証処理を実装してみました。(DjangoでTodoアプリケーションの作成の続きとして) 認証のための設定 settings.pyのアプリケーションリストにdjango.contribut.authが含まれている必要があります。(デフォルトで含まれている) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'djsite.todo', )settings.pyのミドルウェアリストにAuthenticationMiddlewareが含まれている必要があります。(デフォルトで含まれている) MIDDLEWARE_CLASSES = ( 'django.middleware.common
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く