"""Country matching query does not exist.""" on chaeckout

Create issue
Issue #68 resolved
Former user created an issue

Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, callback_kwargs) File "/home/grey/src/satchmo/payment/views.py" in contact_info 4. return common_contact.contact_info(request) #, PaymentSettings().DUMMY) File "/home/grey/src/satchmo/payment/common/views/common_contact.py" in contact_info 33. default_country = Country.objects.get(iso2_code=iso2) File "/usr/lib/python2.4/site-packages/django/db/models/manager.py" in get 73. return self.get_query_set().get(*args, kwargs) File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in get 252. raise self.model.DoesNotExist, "%s matching query does not exist." % self.model._meta.object_name

DoesNotExist at /checkout/ Country matching query does not exist.

Reported by imgrey

Comments (2)

  1. Former user Account Deleted

    This happens because the country is hardcode to "US". Also, is case-sensitive so put "us" not work.

    So for people that not load webda and not set US this not work.

  2. Chris Moffitt repo owner

    I'm not sure if this is really an error. We require at least some portion of webda to work. I'm going to close for now but someone else can reopen if they can think of a better way to remove the dependency.

  3. Log in to comment