3
내가 명령을 실행하면AttributeError : '모듈'개체가 어떤 속성 '하여 DateField'
from django.db import models
# Create your models here.
class Publisher(models.Model):
name = models.CharField(max_length=30)
address = models.CharField(max_length=50)
city = models.CharField(max_length=60)
state_province = models.CharField(max_length=30)
country = models.CharField(max_length=50)
website = models.URLField()
class Author(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=40)
email = models.EmailField()
class Books(models.Model):
title = models.CharField(max_length=100)
authors = models.ManyToManyField(Author)
publishers = models.ForeignKey(Publisher)
publication_date = models.Datefield()
이
$ python manage.py validate
내가 오류 메시지가 얻을 파일 models.py에서이 없습니다
AttributeError: 'module' object has no attribute 'Datefield'
도와주세요.