Currently, there is no documentation for django-threaded-multihost in
the django-threaded-multihost code [1].

In the Satchmo documentation, django-threaded-multihost gets a brief
mention in the requirements documentation which simply says [2]:

"""To support multi store configurations"""

I see that if SATCHMO_SETTINGS = {'MULTISHOP': True}, then a monkey
patch for Site.objects.get_current() is applied (which says it
'Patched Django for multihost awareness.').

So we have 'multihost', 'MULTISHOP' and 'multi store'. 'host' and
'store/shop' are two different things right? Is this a documentation
bug/unfortunate naming of a setting?

In another post on this list [3], the OP is trying to host two shops
on the same site, e.g. example.com/shop1/ and example.com/shop2/ but
discovers that the threaded_multihost monkey patch will attempt to
lookup the ``current_site`` in the database by domain and not by
settings.SITE_ID, leading to surprising behavior.

The standard Django supplied shortcut ``Site.objects.get_current()``
is optimized to only hit the db once, for the life of the application
server process by relying on the clearly documented settings.SITE_ID
and caching the result. In threaded_multihost.sites.by_host there's a
whole chain of try/except if/else blocks, which could result in
several queries and, since this is a thread local variable dependent
on each request, this happens every single request.

What does the multihost bit of django-threaded-multihost provide that
using the standard Django sites framework can't?

How would one run multiple stores for the SAME SITE, managed by the
same Django/Satchmo admin interface at all, django-threaded-multihost
or not (e.g. example.com/shop1/ & example.com/shop2/)?
Is this even possible currently?

Any chance the author(s) can shed some light on the intended usage so
we can document this?

Thanks,
John-Scott

[1] http://bitbucket.org/bkroeze/django-threaded-multihost
[2] http://bitbucket.org/chris1610/satchmo/src/tip/docs/requirements.txt#cl-40
[3] 
http://groups.google.com/group/satchmo-users/browse_thread/thread/7c1c8bc1e488c17d/

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