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 code in Django itself, it should be possible to get the host value with something like request.META.get('HTTP_HOST', None) - is that right? I would then somehow need to change the template path, and this is where my understanding drops off.... I found this post http://www.nabble.com/How-to-pick-a-template-based-on-the-request-object--tf4153180.html#a11822505 but am not sure how i would or could go about building a custom template loader? Also, would there be any scope for checking in the database what theme a particular host name would recive? I am not new to web dev, but am new to python/django so please excuse my ignorance! Any help would be great Cheers Tim --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---