Re: Changing site theme based on request object

2007-10-08 Thread tim_perrett
Hey Guys Thanks for your great responses up to now - most interesting. Ive been reading the documentation and thats been pretty useful (surprise surprise!), but i have another question... As the kind of per site skinning falls in line with some of the ideas of the Django site object, it makes se

Re: Changing site theme based on request object

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 19:08 +, tim_perrett wrote: > Thanks for the speedy reply Malcom... > > Ive taken a look at loaders.py in the latest trunk... I see what you > mean; pretty interesting. I could just write my own loader, import any > classes I needed to use (like the django.http.HttpReque

Re: Changing site theme based on request object

2007-10-06 Thread tim_perrett
Thanks for the speedy reply Malcom... Ive taken a look at loaders.py in the latest trunk... I see what you mean; pretty interesting. I could just write my own loader, import any classes I needed to use (like the django.http.HttpRequest so I can use get_host()) and even use the ORM in the framewor

Re: Changing site theme based on request object

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 09:21 -0700, tim_perrett wrote: > Hey everyone > > Im looking into changing the theme of the site based on the request > that the project recivies: > > I dont want to do this with CSS and stylesheets before anyone suggests > that :) - Ive been looking into adding a bit of m

Changing site theme based on request object

2007-10-06 Thread tim_perrett
Hey everyone Im looking into changing the theme of the site based on the request that the project recivies: I dont want to do this with CSS and stylesheets before anyone suggests that :) - Ive been looking into adding a bit of middleware to do this, and based on what i see in the locale setting