I was wondering whether anyone can help me with a problem I'm having.

I'm running a standalone script outside of the web server to do some
maintainence tasks.

In particular I need to return the absolute url from one of my models,
however when I call the get_absolute_url() method, I'm getting a
ViewDoesNotExist exception raised. A view exists however upon further
investigation I've found that this line of code is causing me some
real problems:

return urlresolvers.reverse('satchmo_product', kwargs={'product_slug':
self.slug})

Basically it appears that Django is concatenating the view path or
similar, so instead of either searching in:
satchmo.shop.views or satchmo.scripts.views

Its actually searching in satcho.shop.views.satchmo.scripts.views

Anyone got any idea how I could overide Django to tell it where to
search for the view or similar?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to