satchmo_store.contact.models.DoesNotExist: ContactRole matching query does not exist.

60 views
Skip to first unread message

MiratCanBayrak

unread,
Nov 7, 2009, 7:04:08 AM11/7/09
to Satchmo users
I try to clone satchmo it gave me that error.

When i run test server it is running but i feel confused, why that
error happened


...
...
...
Checking for existing sample data.
Loading sample store data.
Creating site...
Using existing site #1
Creating Customers...
Traceback (most recent call last):
File "manage.py", line 27, in <module>
execute_manager(settings)
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/lib/python2.5/site-packages/Satchmo-0.9_0-py2.5.egg/
satchmo_store/shop/management/commands/satchmo_load_store.py", line
48, in handle_noargs
customer = ContactRole.objects.get(pk='Customer')
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
db/models/manager.py", line 120, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/
db/models/query.py", line 305, in get
% self.model._meta.object_name)
satchmo_store.contact.models.DoesNotExist: ContactRole matching query
does not exist.
Rebuilding pricing for all products for all sites
Starting product pricing for localhost
Adding 0 products
Added 0 total prices for site
...
...
...

Chris Moffitt

unread,
Nov 7, 2009, 9:40:52 AM11/7/09
to satchm...@googlegroups.com
For some reason, your contact models did not get correctly created. Did you do a syncdb on a fresh install?

Try looking in the database to see if there are tables:
contact_contactorganization
contact_contactorganizationrole
contact_contactrole
contact_organization

-Chris
Reply all
Reply to author
Forward
0 new messages