nl: "because you haven't properly specified the ENGINE setting for the database.\n see: https://docs.djangoproject.com/en/dev/ref/settings/#databases". call the method app_config.get_models with an argument include_auto_created set to boolean True, substitute it for app_models.
code: app_models = app_config . get_models ( include_auto_created = True )