On Fri, Sep 19, 2008 at 6:08 PM, one_ninety <[EMAIL PROTECTED]> wrote:

>
> Actually, that didn't work for me.
>
> My local_settings.py looks more like this:
>
> URLS = patterns('',
> )
> SHOP_URLS = patterns('satchmo.shop.views',
>     (r'^about_us/', 'simple_direct_to_template', {'template':'mystuff/
> test.html'}),
> )
>


> So if I put that line in the SHOP_URLS dictionary it wants to resolve
> to the satchmo.shop.views module. That's ok, I guess, I should be able
> to add a view and handle it that way. But I don't think that was the
> intent of your example.


The first argument to patterns() is the root of the views you are calling.
 So change it to empty string, and use my example.


> When I try this:
>
> URLS = patterns('',
>     (r'^shop/about_us/', 'simple_direct_to_template',
> {'template':'mystuff/test.html'}),
> )
> SHOP_URLS = patterns('satchmo.shop.views',
> )


That would work, if you used simple.direct_to_template

You have an underscore rather than a dot in your version.

>
> --
Bruce Kroeze
http://solidsitesolutions.com
Dynamic Designs, Optimized

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