Some fixes for 1.6 django migration.
Gushuley multihost refactoring.