>  i want to use less memory since every frontend will have
> 100-500 hits per month so there is no real need to have ~10x50mb if i
> can use 50-70mb.
> can you provide any suggestions for this situation?

A) use the sites framework

B)  dirtiest and probably most stupid

you can have discovery performed in the context_processor and
middleware:

ex:
hostname=request.META["SERVER_NAME"];
location = None;

if hostname=='foo.com' or hostname=='www.foo.com':
 location = 1;

if hostname=='boo.foo.com':
 location = 2;

then you can setup redirection templates wchich would include the
proper site templates.

for example in news.html

{%ifequal location 1%}
{%include "loc1/news.html"%}
{%endifequal%}

and so on . not a very elegant though

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to