Blog_mini icon indicating copy to clipboard operation
Blog_mini copied to clipboard

数据库里面的表是怎么创建的?

Open xiaozitwo opened this issue 7 years ago • 1 comments

您好: 数据库里面的表是在哪个地方创建的?最开始只创建了个数据库,没找到创建表的代码呢,能讲解下么?

xiaozitwo avatar Apr 18 '17 09:04 xiaozitwo

在manage.py文件中,执行了upgrade(),就会创建数据库和相应的表。

xpleaf avatar Apr 20 '17 05:04 xpleaf