def ready(self):
    if False:
        settings.SITE.startup()
    else:
        try:
            settings.SITE.startup()
        except ImportError as e:
            import traceback
            raise Exception(('ImportError during startup:\n' + traceback.format_exc(e)))
        except Exception as e:
            print(e)
            raise
def ready(self):
    if False:
        settings.SITE.startup()
    else:
        try:
            settings.SITE.startup()
        except ImportError as e:
            import traceback
            raise Exception(('ImportError during startup:\n' + traceback.format_exc(e)))
        except Exception as e:
            print(e)
            raise