nl: app_name and model._meta.object_name, respectively. evaluate connection.creation.sql_create_model method with model, no_style() and seen_models as arguments,
code: sql , references = connection . creation . sql_create_model ( model , no_style ( ) , seen_models )