Error while creating ShopConfig

Create issue
Issue #31 resolved
Chris Drew created an issue

NameError? at /admin/shop/config/add/ global name 'DoesNotExist' is not defined Request Method: GET Request URL: http://localhost:8000/admin/shop/config/add/ Exception Type: NameError? Exception Value: global name 'DoesNotExist' is not defined Exception Location: /home/brice/work/perso/djangostuff/satchmo/satchmo/../satchmo/shop/ in settings, line 17

It seems that the error is located in source:trunk/satchmo/shop/ at line 17

Comments (3)

  1. Former user Account Deleted

  2. Chris Moffitt repo owner

    I see it all the time while :

    • going to /admin/shop/config/add
    • filling in the required fields
    • clicking the save button

    If I understand the problem correctly, at line 17 of, the DoesNotExists? exception, well, does not exists in the imported modules :) So, imho there is three solutions to this problem :

    • we import ObjectDoesNotExists? as DoesNotExists? : this is what the attached patch does
    • we raise another generic exception (ObjectDoesNotExists? for example)
    • we raise a more specific exception (Config.DoesNotExists? for example)
  3. Log in to comment