On Fri, Sep 19, 2008 at 1:27 PM, one_ninety <[EMAIL PROTECTED]> wrote:
>
> I want to add a few templates that inherit from base_index.html. These
> will be primarily static pages without the left-side navigation and
> maybe recently viewed products.
>
> What's the best practice here? Would I really need to create a new
> Django app? I've tried copying what's happening with wishlist (without
> the model of course) but I'm not getting Django/Satchmo to recognize
> (ie load) my URL patterns when I do that.
>
In your local_settings, you have a dictionary, which looks something like
this:
SATCHMO_SETTINGS = {
'SHOP_BASE' : '',
'MULTISHOP' : False,
'SHOP_URLS' : patterns('',
(r'^feed/', include('satchmo.feeds.urls')),
(r'^brand/', include('satchmo.product.brand.urls'))
)
}
What you want to do is add your urls like so, using the direct_to_template
view. Here I am adding a url resolver which will send requests for
http://yourshop/page1/ to the direct resolver, which will just show that
page. Recent products will still
work because they are done in a templatetag library, needing no context.
'SHOP_URLS' : patterns('',
(r'^feed/', include('satchmo.feeds.urls')),
(r'^brand/', include('satchmo.product.brand.urls'))
(r'^page1/', 'simple.direct_to_template', {'template':
'mystuff/page1.html'}),
)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---