>
> On Mon, Nov 24, 2008 at 10:25 AM, Richy <[EMAIL PROTECTED]> wrote:
>
>>
>> How do I load satchmo_discount in the demo shop?
>>
>> I would like to use {% load satchmo_discount %} in the product page
>> but it gives me the following error trying to load it.
>>
>> Exception Type:         TemplateSyntaxError
>> Exception Value:
>>
>> 'satchmo_discount' is not a valid tag library: Could not load template
>> library from django.templatetags.satchmo_discount, No module named
>> satchmo_discount
>>
>>
Try {% load satchmo_discounts %} instead.

The general way to test problems like this is to use "./manage.py shell" and
try to load the template library manually.  In this case, you could work it
out like so:

In [1]: from satchmo.discount.templatetags import satchmo_discount
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/opt/webapps/testmo/<ipython console> in <module>()

ImportError: cannot import name satchmo_discount

In [2]: from satchmo.discount.templatetags import satchmo_discounts

In [3]:

--~--~---------~--~----~------------~-------~--~----~
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