Never mind. I had somehow destroyed my DB. I destroyed and remade it and the problem went away.
On Apr 24, 12:10 am, Steve Hershman <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a Django noob, but I don't think this question has been asked > before. > > I'm trying to use django.views.generic.create_update.create_object and > when the form gets submitted, I get an IntegrityError - null value in > column "id" violates not-null constraint. I'm a little confused about > how to debug this as id is never explciity declaired in my model (does > Django take care of this for you?). > > Here's the traceback: > Traceback (most recent call last): > File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in > get_response > 77. response = callback(request, *callback_args, **callback_kwargs) > File "C:\Python25\lib\site-packages\django\views\generic > \create_update.py" in create_object > 40. new_object = manipulator.save(new_data) > File "C:\Python25\lib\site-packages\django\db\models\manipulators.py" > in save > 108. new_object.save() > File "C:\Python25\lib\site-packages\django\db\models\base.py" in save > 243. ','.join(placeholders)), db_values) > File "C:\Python25\lib\site-packages\django\db\backends\util.py" in > execute > 12. return self.cursor.execute(sql, params) > > IntegrityError at /prop/post/ > null value in column "id" violates not-null constraint > > and chunks of the model: > > class Property(models.Model): > owner_name = models.CharField('Name', maxlength=25) > email = models.EmailField() > ... > address = models.CharField(maxlength=100)) > timestamp = models.DateTimeField('Date Posted', auto_now=True, > blank=True) > > Thanks in advance for your help. > > Best, > Steve --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---