def init_all_applications():
 from django.db.models import get_apps, get_models
 for app in get_apps():
  try:
   get_models(app)
  except Exception:
   continue

def init_all_applications ( ) : from django . db . models import get_apps , get_models for app in get_apps ( ) : try : get_models ( app ) except Exception : continue
forces import of all applications to ensure code is registered .