Hi Bruce,
excellent advice. I will follow it, many thanks. I added the relevant
urlpatterns as you described to ./mystore/urls.py and created the
necessary html files which worked great. I tested out your flatpage
urlpattern in the same way and that also works great.

I am not sure what you mean by 'use the SHOP_URLS pattern in your
settings file' - should the above patterns go into my ./mystore/
settings.py and not ./mystore/urls.py?

With reference to your 'starting a new store real world project
layout' I was able to follow all the great advice apart from the 'url
layout' part and the 'install the site app'. I now understand what you
are saying but I think you might have made a couple of small mistakes
(of course I could easily be misunderstanding!).

You say to set:
ROOTURL_CONF = storename.site.urls

but when you describe the project setup you do not say to create the
file ./storename/site/urls.py As I understand it now you are saying
that you can use ./storename/site/urls.py to import the satchmo.urls
file and then make any custom changes there which seems like a great
idea.  Is the 'install the site app' part of the article a pre-
requisite to setting up the custom urls.py as described above? As far
as I understand it would seem like the answer is yes, if so would it
not be better to put this part first?

When I follow your article exactly it does not work. When understand
what you are trying to tell us and make a couple of small changes I
can get most of it to work. I really appreciate your advice but as a
beginner with django/python satchmo it can be tricky! Could you
describe further about setting up the custom app?

Looking forward to receiving more of your great advice and tips! -
sorry if it is my misunderstanding.

best regards,
Stjohn

> First, don't ever modify shop/urls.py.  That means you are forking the code,
> and you won't get updates properly.  I guarantee you will regret it if you
> fork the code.
>
> Instead, use the SHOP_URLS facility in your settings file. That's what it is
> for.  For more customized needs, please refer to my blog article about
> setting up a flexible, maintainable site.  I talk about URLs there.
>
> http://gosatchmo.com/starting-a-new-store-real-world-project-layout
>
> For you, I recommend you simply directly reference the urls that you want to
> serve.  Something like this:
>
> urlpatterns += patterns('',
>     ('^terms/', 'django.views.generic.simple.direct_to_template',
>         {'template' : 'site/terms.html'}, 'shop_terms'))
>
> If you really want to use flatpages, then just have it be active for urls
> under some known prefix, like so:
>
> urlpatterns += patterns('',
>     ('^pages/', include('django.contrib.flatpages.urls')))
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to