Q: How to use Django DateTimeField's default I'm trying to use datetime.datetime.now as the default for my pub_date column, but keep getting an error.
DatabaseError: (1054, "Unknown column 'archive_app.pub_date' in 'field list'")
I'm just testing out my code in python manage.py shell so the line I use when getting the error is simply App.objects.all()
Here's my model code for the app
import datetime
from django.db import models

class App(models.Model):
    title = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)
    pub_date = models.DateTimeField('pub date', default=datetime.datetime.now)


A: When you ran syncdb, did you have pub_date defined on App? 
If you added it after syncdb then did you create and run the migration?
