Bruce,
I performed the steps you suggested and ended up with the following:
>>> urlresolvers.reverse('/admin/product/productvariation/56/', None, {})
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python25\Lib\site-packages\django\django\core
\urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "C:\Python25\Lib\site-packages\django\django\core
\urlresolvers.py", line 226, in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(),
()])
File "C:\Python25\Lib\site-packages\django\django\core
\urlresolvers.py", line 168, in _get_reverse_dict
self._reverse_dict[pattern.callback] = bits, p_pattern
File "C:\Python25\Lib\site-packages\django\django\core
\urlresolvers.py", line 132, in _get_callback
raise ViewDoesNotExist, "Could not import %s. Error was: %s" %
(mod_name, str(e))
ViewDoesNotExist: Could not import satchmo.shop.views.admin-portal.
Error was: cannot import name Order
The admin-portal view was in the previous version of Satchmo, but not
in the latest SVN version that I am using. I copied it over from the
previous version I was using, and then get this error. I am using
Django release 1.0 version 9084.
Any help in pointing out my errors is much appreciated.
Thanks,
Jim
On Sep 20, 1:13 am, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 19, 2008 at 1:32 AM, Shakthi <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I havent overcome this error. I reinstalled my store and it seems
> > fine. I will try to reproduce the error and if found I will create a
> > ticket.
>
> > Thanks
> > Shakthi
>
> Usually, such problems are caused by a syntax error in the url resolving
> chain, and have nothing to do with the specific page which wasn't found.
> The best way I've found to track those problems down is to use iPython.
>
> $ ./manage.py shell
> [1] from django.core import urlresolvers
> [2] urlresolvers.reverse('your-problem-view', None, {})
>
> At this point, you are likely to get a traceback pointing at exactly the
> problem 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
-~----------~----~----~----~------~----~------~--~---