ãæ®éã®ãDjangoéçºã®å稿ãæ¸ããªãã¦ã¯ãããªãã®ã§ãããããModelFormã«è§¦ã£ã¦ã¿ããã¡ãã£ã¨ããªãã¢ã«ãªã¢ãã«ã ããã©ããã¢ãã«Itemã«å¯¾ãããã©ã¼ã ItemFormãå®ç¾©ãã¦ã¿ãã import django.newforms as forms from django.db import models class Item(models.Model): name = models.CharField(max_length=100) class ItemForm(forms.ModelForm): class Meta: model = Item ãã¥ã¼ãã使ãæã«ã¯ãæ°è¦ä½æãªãã°ã from django.shortcuts import * from django.template import RequestContext from models import I
{{#tags}}- {{label}}
{{/tags}}