just a suggestion
if it is just the templates you can write a loop inside in settings.py
based on site_id
like
if
SITE_ID==1:
TEMPLATE_DIRS =="///
elif SITE_ID==2:
TEMPLATE_DIRS =="somethingelse"
Pardon me if I didn't understand your question.
Ramdas
On Fri, Dec 12, 2008 at 5:44 PM, will0 <[email protected]> wrote:
>
> Hi all
>
> I can't figure out how to change TEMPLATE_DIRS according to the URL
> used.
>
> My purpose is to view two versions of the same site, e.g. mysite/v1/
> and mysite/v2/, but keep the same codebase. This is just for
> development so people in several countries can view the site and put
> in their opinion.
>
> I've tried a few methods, e.g. setting an environment variable in
> apache and picking that up in settings. This unfortunately requires
> many page refreshes to work, for some reason. I've set
> MaxRequestsPerChild to 1.
>
> <Location /v1>
> ...
> SetEnv MAP_SITE_VERSION v1
> ...
> </Location>
>
> Is there another way? I could pick up the version in the view from the
> URL however this would require significant changes to the code.
>
> Perhaps there's a way to pick up the HTTP request parameters in
> settings?
>
> Thanks
>
> Will
>
>
> >
--
Ramdas S
+91 9342 583 065
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---