Radomir, the code searches through HOST_THEMES and returns on the first match, so you must be hitting it with a host of 127.0.0.1?
I put print statements in the code the other day and could get it to match on the second entry. I was testing with a production test case, so I had real domains to use. In my case I have a nonprofit's website, call it main.org, and two associated domains that need their own themes (these are not subdomains), and it would be great to switch Sites within one Mezzanine process to edit each of the three. Each theme layout is similar, with the same styling of the menu at top, three thumbnail images at the top, a right panel with varied content, and with a carousel above the footer. In addition to the different themes, if it would work, there should be one single cartridge shop in main.org. If use of HOST_THEMES is inappropriate for this, then I could have separate processes for the three, and link to the the shop on main.org. But that requires maintainers to have three log-ins, while having some benefits. Or, perhaps I could use rewrite rules to point the two secondary domains to folders within main.org, and use urlpattern entries and direct_to_template to associate themes. It is possible that HOST_THEMES could figure in here, as themes could be associated to main.org/one, main.org/two? Whatever the most appropriate approach for my problem, I do not yet understand the use case and limitations for HOST_THEMES. I have pledged to help with docs on this, but must gain a better broad understanding first. I am using nginx, which I think was configured correctly in one of my tests to tie the secondary domains to the same gunicorn/mezz process. That end of it could use description too. Jeff On Jan 22, 2014, at 2:31 PM, Radomir Wojcik <[email protected]> wrote: > to be importable the name has to be valid i.e. no periods and the __init__.py > file is required. Is there anything else I should check? > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
