Slowly trying to see the light... can anybody put me straight on the
following:-

I have three different templates.  Each template gives a simple list of
a model (table in the database).    I now want to create a single
template that displays all three lists.

Can I:-

a)  Combine all three templates into a master template using an Include
statement or a SSI statement.  (My read on this is I can't or its not
recommended but I just want to check)

b) Combine all three lists by creating a new view, (Doesn't this
violate the DRY principle?)

Can anybody outline to this newbie what the basic steps and best
practice are to achieve this.  The tutorial doesn't really go into this
stuff?

Finally, I've tried to test the SSI tag but I get "Didn't have
permission to include file".  I changed my settings file to include:-

ALLOWED_INCLUDE_ROOTS = (

'c:/python24/lib/site-packages/django/bin/juicyoffers/mytemplates/polls/
',
      '/mytemplates/polls/',
)

but this didn't work. Any suggestions?

MerMer


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to