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.

Thanks,
Frankie.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to