This method should be moved from a settings.py file into the microsites app itself.