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/context_processors.py in settings, line 17

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

Comments (3)

  1. Former user Account Deleted

    http://www.desiurl.com/98e77 http://www.desiurl.com/a67d6 http://www.desiurl.com/480c7 http://www.desiurl.com/689cc http://www.desiurl.com/b3ae8 http://www.desiurl.com/b2257 http://www.desiurl.com/cd2df http://www.desiurl.com/57388 http://www.desiurl.com/3cbf2 http://www.desiurl.com/f2ed1 http://www.desiurl.com/0409b http://www.desiurl.com/07bae http://www.desiurl.com/647bc http://www.desiurl.com/869cd http://www.desiurl.com/072aa http://www.desiurl.com/05d9d http://www.desiurl.com/30a3d http://www.desiurl.com/ceb00 http://www.desiurl.com/6091f http://www.desiurl.com/7df73 http://www.desiurl.com/b00e8 http://www.desiurl.com/9c813 http://www.desiurl.com/7d5ff http://www.desiurl.com/c75a7 http://www.desiurl.com/2ea48 http://www.desiurl.com/8176a http://www.desiurl.com/a464e http://www.desiurl.com/df46d http://www.desiurl.com/5fa90 http://www.desiurl.com/16b08 http://www.desiurl.com/9ddd4 http://www.desiurl.com/4e368 http://www.desiurl.com/a681b http://www.desiurl.com/c5de5 http://www.desiurl.com/76605 http://www.desiurl.com/3c12e http://www.desiurl.com/bdade http://www.desiurl.com/7b4ba http://www.desiurl.com/77aa9 http://www.desiurl.com/2a99d http://www.desiurl.com/66b00 http://www.desiurl.com/88eaf http://www.desiurl.com/77e1c http://www.desiurl.com/5d44d http://www.desiurl.com/8018b http://www.desiurl.com/22ba0 http://www.desiurl.com/2e592 http://www.desiurl.com/67e3d http://www.desiurl.com/ba02e http://www.desiurl.com/f646e http://www.desiurl.com/a3c55 http://www.desiurl.com/7ea4f http://www.desiurl.com/8b849 http://www.desiurl.com/80de4 http://www.desiurl.com/e4816 http://www.desiurl.com/1b676 http://www.desiurl.com/ff6d1 http://www.desiurl.com/95972 http://www.desiurl.com/7bb5c http://www.desiurl.com/127c9 http://www.desiurl.com/1807d http://www.desiurl.com/a3158 http://www.desiurl.com/1fcca http://www.desiurl.com/3ff53 http://www.desiurl.com/54ba9 http://www.desiurl.com/bb047 http://www.desiurl.com/ea755 http://www.desiurl.com/67988 http://www.desiurl.com/8bffe http://www.desiurl.com/2b75a http://www.desiurl.com/f0bad http://www.desiurl.com/0840c http://www.desiurl.com/83ab1 http://www.desiurl.com/a688c http://www.desiurl.com/c8ba5 http://www.desiurl.com/b000e http://www.desiurl.com/c23ea http://www.desiurl.com/b2100 http://www.desiurl.com/c423a http://www.desiurl.com/395a1 http://www.desiurl.com/40480 http://www.desiurl.com/60307 http://www.desiurl.com/90ca7 http://www.desiurl.com/b7546 http://www.desiurl.com/47635 http://www.desiurl.com/376c3 http://www.desiurl.com/87928 http://www.desiurl.com/4bcef http://www.desiurl.com/9907b http://www.desiurl.com/b81e5 http://www.desiurl.com/ad2ea http://www.desiurl.com/7dd0a http://www.desiurl.com/36c7d http://www.desiurl.com/cb126 http://www.desiurl.com/50d00 http://www.desiurl.com/44b86 http://www.desiurl.com/6c258 http://www.desiurl.com/c565d http://www.desiurl.com/9aaef http://www.desiurl.com/a6f9b

  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 context_processors.py, 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