On Mon, Jan 3, 2011 at 8:57 AM, Marek Kubica <[email protected]> wrote:

>
> > To answer you more specifically, I'm not sure what you mean when you
> > say "each site with a different template directory (and one shared
> > directory)." I understand the "different template directory" part,
> > which is easy enough to do (via TEMPLATE_DIRS); I guess it's the "one
> > shared directory" that's throwing me.
>
> Ok, it is a company with multiple distinct brands. One brand should use
> one template directory, the other brand another and they should both
> have access to a "common" template directory. Containing stuff like
> privacy policiy, legalese, you name it.
>

That's what Django Site Skins does.


>
> > You are correct that having two sites necessitates two settings files.
> > I'm not sure what you mean by "start[ing] two django instances."
>
> Well, I use FastCGI so I have to specify a setting file for each
> FastCGI script that I start and mod_fcgid starts a Python process for
> each FastCGI script. I'd rather have only one script that dispatches
> internally on the domain name it was accessed from to decide whether it
> is now returning "brand 1" results or "brand 2" results.
>

I use FastCGI as well.  Actually, I don't anymore, because I've moved to
Green Unicorn, but I always used to use FastCGI.  You only need one script
and one settings file to start the d-t-m aware server.  The d-t-m framework
in concert with the Django Site Skins app does all the template and Django
Site awareness based on domains, and automatically returns results only for
products for that domain.

I'll go add some setup notes to Django Site Skins, not a lot of detail in
the docs yet.

regards,
> Marek
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<satchmo-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>
>


-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo 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/satchmo-users?hl=en.

Reply via email to