I have cleaned up my model view and I thought for sure that serial_num
field is gone.  I have dropped the db and re-created the db with ./
manage.py syncdb but I still get the below error message. It seems
like it is cached somewhere.  I had this working before I modified the
models.py.  When I do ./manage.py validate I don't any errors with the
new model.  Let me know if you want me to post the model and the code.

management.machineNameCheck()
  File "/home/thesheff17/DigiSoft/django/django1/inventory/
Management.py", line 33, in machineNameCheck
    machineList = Machine.objects.get(name=server)
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/
manager.py", line 93, in get
    return self.get_query_set().get(*args, **kwargs)
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/query.py",
line 304, in get
    num = len(clone)
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/query.py",
line 160, in __len__
    self._result_cache = list(self.iterator())
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/query.py",
line 275, in iterator
    for row in self.query.results_iter():
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/sql/
query.py", line 206, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/models/sql/
query.py", line 1734, in execute_sql
    cursor.execute(sql, params)
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/backends/util.py",
line 19, in execute
    return self.cursor.execute(sql, params)
  File "/home/thesheff17/DigiSoft/djtrunk/django/db/backends/mysql/
base.py", line 83, in execute
    return self.cursor.execute(query, args)
  File "/var/lib/python-support/python2.6/MySQLdb/cursors.py", line
166, in execute
    self.errorhandler(self, exc, value)
  File "/var/lib/python-support/python2.6/MySQLdb/connections.py",
line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, "Unknown column
'inventory_machine.serial_num' in 'field list'")

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to