python - what does " models.Model "mean -
i'm working through https://docs.djangoproject.com/en/1.4/intro/tutorial01/ . include next :
from django.db import models class poll(models.model): question = models.charfield(max_length=200) pub_date = models.datetimefield('date published') what " models.model "mean?
do know inheritance is? start looking @ examples:
http://parand.com/say/index.php/2009/04/20/python-simple-inheritance-example/
it saying utilize properties model class has plus whatever define on class.
good luck
in php be:
class poll extends model { var $question; var $pub_date; } model class in models module in django framework...
python django
No comments:
Post a Comment