> Django does not implement any defaults, including auto_now_add, by > specifying the default at the SQL level. Rather Django ensures that the > default value is specified when it saves a row to the database.
Aha! That explains it. > > So if you are going outside of Django to insert records, the default value > will not be applied. I am indeed trying to perform the insert from outside of Django. In this case you may want to alter the table to > specify the default in SQL so that it is applied regardless of whether > records are inserted using Django or not. > Sqlite doesn't allow you to modify columns -- only add them, correct? If that's the case, I think I'll have to add the column using SQL, and then map to it in my model defintion, right? Unless you see something wrong with that method, I'll give it a try. Meantime, thanks much for the quick reply! Regards, Serdar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---