On Sun, 2006-06-18 at 19:46 +0100, Frankie Robertson wrote: > The following is used mainly as an example for something I've been > wondering about. > > Say I'm a blog host and want to use django. I need all my views to > know which blog (so as to know what information to get) they're using. > I also need all my templates to have access to the blog object (so > they can display the name and use the stylesheet of the current blog). > How, while remaining DRY, that is not having each view take the blog > slug and then pass the blog object to the template, can I do this? I > think the sites framework might do something simelar.
So, assuming you have read the sites documentation, why do you think that is not what you are after? It looks to me like that should work for you. Can you clarify what you problem is a bit? Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---