The lack of docs is the reason I haven't released multishop to beta yet.
But, very shortly:
- You need the one from trunk, not the packaged release. I'll roll a new release when
I push multihost to beta.
- It provides:
- threadlocal middleware which holds the current request, allowing python modules to
get at the current request without having to be passed it in a parameter.
- site resolution by url.
To use it, add it to your middleware in the position shown in settings-customize.py. You
*must* make sure that you have a site object with your correct domain name for it to work.
That means you can't just leave it as-is. For many shops, even live ones, I see people
leaving the default site domain as "
example.com." That won't work, and is a bad idea
in any case.
So, if you are developing locally, and you use "localhost:8000" for your test server, then
change site 1 to "localhost."
Once you do this, you can have multiple shops. They'll resolve by domain name, and
when you go to /settings/ you'll only see settings for that domain name. When you
are browsing the shop itself you should only see products assigned to that site.
+Bruce Kroeze