Skip to content

Instantly share code, notes, and snippets.

@BrianTheCoder
Created July 31, 2008 18:18
Show Gist options
  • Save BrianTheCoder/3493 to your computer and use it in GitHub Desktop.
Save BrianTheCoder/3493 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "populate_db.py", line 30, in <module>
supplier.save()
File "/Library/Python/2.5/site-packages/django/db/models/base.py", line 274, in save
self.save_base()
File "/Library/Python/2.5/site-packages/django/db/models/base.py", line 342, in save_base
result = manager._insert(values, return_id=update_pk)
File "/Library/Python/2.5/site-packages/django/db/models/manager.py", line 127, in _insert
return insert_query(self.model, values, **kwargs)
File "/Library/Python/2.5/site-packages/django/db/models/query.py", line 870, in insert_query
return query.execute_sql(return_id)
File "/Library/Python/2.5/site-packages/django/db/models/sql/subqueries.py", line 300, in execute_sql
cursor = super(InsertQuery, self).execute_sql(None)
File "/Library/Python/2.5/site-packages/django/db/models/sql/query.py", line 1608, in execute_sql
cursor.execute(sql, params)
File "/Library/Python/2.5/site-packages/django/db/backends/util.py", line 18, in execute
return self.cursor.execute(sql, params)
File "/Library/Python/2.5/site-packages/django/db/backends/sqlite3/base.py", line 144, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.IntegrityError: supplier_supplier.street2 may not be NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment