2009/10/13, Nan <[email protected]>: > > Making request global definitely sounds like a potentially fragile > solution. I noticed that the template loaders take a directory list > argument, but it doesn't seem to ever get passed in -- it's not even > an argument for loader.get_template() or loader.select_template(). > > One possibility might be to replace render_to_response, but I'm still > stuck on how to pass the request or theme variable to it; plus there > are some apps that don't use render_to_response. > > I'm starting to think that I'll need to branch Django itself to make > this possible, which seems ridiculous.
Even if you patch django and add request argument to get_template you also should rewrite all aplication views to push their requests into get_template. It's quite simple to only patch views in applications and make them working with your themes. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

