I also get (along with the above error) when I try to access the Variation Manager from the "Change Product Variation" screen:
TypeError at /products/product/admin/mytshirt/variations/ set objects are unhashable Request Method: GET Request URL: http://www.mywebsite.com/products/product/admin/mytshirt/variations/ Exception Type: TypeError Exception Value: set objects are unhashable Exception Location: /usr/lib/python2.4/site-packages/satchmo/product/ models.py in setup_variation_cache, line 1184 Python Executable: /usr/bin/python Python Version: 2.4.3 Python Path: ['/var/www/vhosts/mywebsite.com/django_projects', '/usr/ lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg', '/usr/lib/ python2.4/site-packages/pycrypto-2.0.1-py2.4-linux-i686.egg', '/usr/ lib/python2.4/site-packages/django_registration-0.7-py2.4.egg', '/usr/ lib/python2.4/site-packages/PyYAML-3.06-py2.4-linux-i686.egg', '/usr/ lib/python2.4/site-packages/elementtree-1.2.7_20070827_preview- py2.4.egg', '/usr/lib/python2.4/site-packages/docutils-0.5-py2.4.egg', '/usr/lib/python2.4/site-packages/python_memcached-1.43-py2.4.egg', '/ usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat- linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib- dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site- packages/PIL'] Server time: Mon, 17 Nov 2008 16:20:32 -0800 On Nov 17, 2:36 pm, joshm <[EMAIL PROTECTED]> wrote: > Ok, I noticed that my urls.py was out of date, so I updated it and got > everything in sync. > > Now when I follow the same steps, I get a 404 error, but this is kind > of strange because if I look at what url the two subtype options are > trying to resolve to I have: > > Edit Configurable Product: (http://mywebsite.com/admin/product/ > configurableproduct/21/) which resolves just fine > Variation Manager: (http://mywebsite.com/product/admin/mensruntshirt/ > variations/) which gives the below 404 error. > > Is it possible I have to rebuild my product variations (that would > suck)? I also noticed if I now go into the configurable product and > try to add a new product variation, it doesn't seem to add it and it > acts like it did with no error. > > Page not found (404) > Request Method: GET > Request URL: http://mywebsite.com/product/admin/mensruntshirt/variations/ > > Using the URLconf defined in lyp_website.urls, Django tried these URL > patterns, in this order: > > 1. ^$ > 2. ^contact/$ > 3. ^admin/print/(?P<doc>[-\w]+)/(?P<id>\d+) > 4. ^admin/product/configurableproduct/(?P<id>\d+)/getoptions/ > 5. ^admin/doc/ > 6. ^accounts/ > 7. ^products/ > 8. sitemap\.xml$ > 9. settings/ > 10. cache/ > 11. ^admin/(.*) > 12. ^static/(?P<path>.*)$ > > The current URL, product/admin/mensruntshirt/variations/, didn't match > any of these. > > On Nov 17, 1:37 pm, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote: > > > On Mon, Nov 17, 2008 at 1:17 PM, joshm <[EMAIL PROTECTED]> wrote: > > > > I'm using the trunk (rev 1702, but I believe I have seen this quite a > > > ways back as well) below are the repro steps, if you have any info > > > that would be great: > > > > 1) I add a product to the store and save it. > > > 2) Select that product from the products list > > > 3) Click "Add ProductVariation" under Product Subtypes > > > Hmm. It works for me using a completely virgin install, test data only. > > > > I get: > > > > TemplateSyntaxError at /admin/product/productvariation/add/ > > > > Caught an exception while rendering: Reverse for > > > 'my_website.satchmo_admin_configurableproduct' with arguments > > > '(999999999,)' and keyword arguments '{}' not found. > > > OK. Try this: > > ------------------ > > > $ ./manage.py shell > > > In [1]: from django.core import urlresolvers > > > In [2]: urlresolvers.reverse('satchmo_admin_configurableproduct', None, > > args=(999,)) > > Out[2]: '/admin/product/configurableproduct/999/getoptions/' > > > ------------------ > > > If it fails, then you must be missing that urlpattern. The urlpattern is > > loaded from satchmo.urls_base.py, which is itself loaded by default from > > satchmo.urls. > > > If you have your own custom urlpatterns, you need to look at the example in > > satchmo.urls and make sure that you either load the urls from urls_base, or > > you manually create them in your urls file. > > > -- > > Bruce Kroezehttp://gosatchmo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
