Looking at the code in category_tree, it calls
Category.objects.root_categories() then loops through and acts on all
sub categories. Here's the same code and it works in manage.py shell -
further confusing me...

In [7]: for cats in Category.objects.root_categories():
   ...:     print cats
   ...:     print cats.child.count()
   ...:     children = cats.child.all()
   ...:     for child in children:
   ...:         print child
   ...:
   ...:
Foie Gras
2
Foie Gras :: Entier
Foie Gras :: Bloc
Confits
0
Magrets
0
Terrines, Pâtés et Rillettes
0
Plats cuisinés
1
Plats cuisinés :: Cassoulets
Vins et Liqueurs
5
Vins et Liqueurs :: Armagnac
Vins et Liqueurs :: Floc de Gascogne
Vins et Liqueurs :: Vins
Vins et Liqueurs :: Eau de Vie
Vins et Liqueurs :: Fruits à l' Armagnac
Truffes
0
Miel et Confitures
2
Miel et Confitures :: Miel
Miel et Confitures :: Confitures
Accompagnements
0


On Oct 29, 12:08 pm, nostradamnit <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I upgraded my 'live' site to the 1650 as I am running on my dev
> machine. Now I've got NoReverseFound errors on the home page and the
> admin home page, though I can pull up admin/products ?!? What's really
> weird is it was working last night, and this morning it's erroring out
> everywhere...
>
> On the home page, it's dying at {% category_tree %}  trying to build
> the product menu :
> Caught an exception while rendering: Reverse for 'satchmo_category'
> with arguments '()' and keyword arguments '{'parent_slugs': '',
> 'slug': u'foie-gras'}' not found.
>
> The sub category foie-gras exists?!?
>
> On the admin site home page, it errors out on
> Caught an exception while rendering: Reverse for
> 'delices.satchmo_admin_edit_inventory' with arguments '()' and keyword
> arguments '{}' not found.
>
> How do I debug this?
>
> Thanks,
> Sam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to