On 6/19/06, Frankie Robertson <[EMAIL PROTECTED]> 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. > > Thanks, > Frankie. > I think the right way is setting use_id in url, just like:
/user_id(or user_name)/blog_id that's ok. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---