© Copyright 2007, 2008, 2009, 2010, the SQLAlchemy authors and contributors. Created using Sphinx 1.0.5.
DjangoのUserモデルを拡張したいのでやってみた。 使用したDjangoのバージョンは1.3 継承用のアプリの作成ここではaccountsというアプリ名に。 python manage.py startapp accounts auth.models.Userを継承したモデルの作成マネージャーも変更できるようにauth.models.UserManagerを継承したクラスに変更。 継承したUserモデルには電話番号のfieldを追加してみた。 from django.db import models from django.contrib.auth.models import UserManager as AuthUserManger, User as AuthUser class UserManager(AuthUserManger): pass class User(AuthUs
HTML forms are the backbone of interactive Web sites, from the simplicity of Google’s single search box to ubiquitous blog comment-submission forms to complex custom data-entry interfaces. This chapter covers how you can use Django to access user-submitted form data, validate it and do something with it. Along the way, we’ll cover HttpRequest and Form objects. Getting Data From the Request Object
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く