I saw several similar entries of other attributes, but not this. New for Python and Django. I made the first part of several tutorials, including the Django polls tutorial, and when it comes to the point where I syncdb for my application, I invariably get an AttributeError: 'module' object that does not have a CharField attribute.
In the models, I copied exactly as the textbook says:
from django.db import models
class Poll(models.Model): question = models.Charfield(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes = models.IntegerField()
'polls' is also added to installed applications, and I use sqlite3, windows 7, python 2.7.
Any help is much appreciated! (I really try to learn!)
user1475955
source share