def run(): """ Executed during django startup """ global INITIALIZED if INITIALIZED: return INITIALIZED = True autostartup() # Do the patching here from ifmo_mod.patch import patch patch()
def run(): """ Executed during django startup """ autostartup() # Trigger a forced initialization of our modulestores since this can take a while to complete # and we want this done before HTTP requests are accepted. if settings.INIT_MODULESTORE_ON_STARTUP: for store_name in settings.MODULESTORE: modulestore(store_name) # Do the patching here from ifmo_mod.patch import patch patch()