Thanks for the speedy response! I appreciate the help and step by step details.
Thanks again, -Alex On Aug 5, 12:35 pm, Stuart Laughlin <[email protected]> wrote: > On Thu, Aug 5, 2010 at 12:08 AM, alex <[email protected]> wrote: > > I was reading the Satchmo documentation and although it's simple to > > read, I was confused on how to point to my own created page such as an > > about.html or employees.html. > > > I've been exploring the Satchmo directories and from what I could > > understand, I'm supposed to create my own view with a request and > > templatelocation parameter. Then I have to configure my URLs to point > > to that view. However, when I did that, nothing seemed to happen. Am I > > missing a step? > > > Many thanks for your helpful answers in advance, > > Alex > > The 'flatpages' feature is intended for scenarios like this, but I > found it to be a bit over-complicated for what I needed. So here's > what I do... > > 1. Create a directory for my 'static' HTML files and add it to > TEMPLATE_DIRS in settings.py. > 2. Add all my 'static' HTML files to the directory. > 3. Modify each HTML file to extend 'shop/base.html' (my static pages > were created as 'vanilla' HTML pages so in this step I'm 'converting' > them to django templates so they can pick up on the site's common > look-and-feel). > 4. Add entries to urls.py as desired (see below for example). > 5. Create the referring anchor tag on the satchmo site and link in the new > URL! > > Took me about 30 minutes to link in six pages in this manner. > > Here's what the entries in the urls.py look like: > > (r'^about/', 'django.views.generic.simple.direct_to_template', > {'template' : 'about_us.html'}), > > Hope that helps! > > --Stuart -- 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.
