random_instances是一种实用工具检索或产生的Django模型的随机实例。该模块导出get_or_create_random功能,提高了Django的get_or_create(http://djangoproject.com/documentation/models/get_or_create/)在两个方面:*调用get_or_create_random相匹配的多个实例,不引发错误的参数,而是返回这些实例之一随机*调用get_or_create_random与参数不匹配任何实例返回该模型的新实...