我不知道什么是摊贩的问题,但它拒绝在数据库中添加新行并显示消息: Illuminate\Database\QueryException with message 'SQLSTATE[HY000]: General error: 1364 Field 'title' doesn't have a default value (SQL: insert into 'categories' ('updat
我想用factory_boy和Faker中的DjangoModelFactory设置UserFactory。 这是我的代码。 fake = Faker('uk_UA')
class UserFactory(DjangoModelFactory):
class Meta:
model = User
username = fake.user_name
f