def get_snippet_model_from_url_params(app_name, model_name):
 try:
  model = apps.get_model(app_name, model_name)
 except LookupError:
  raise Http404
 if (model not in get_snippet_models()):
  raise Http404
 return model

def get_snippet_model_from_url_params ( app_name , model_name ) : try : model = apps . get_model ( app_name , model_name ) except LookupError : raise Http404 if ( model not in get_snippet_models ( ) ) : raise Http404 return model
retrieve a model from an app_label / model_name combo .