开发者

bootsrapping in django

开发者 https://www.devze.com 2023-01-04 17:42 出处:网络
while using groovy with grails i used to use the bootstrap file to add some data such as the primary user of the application or other things that need to be initialised for the first time开发者_如何学

while using groovy with grails i used to use the bootstrap file to add some data such as the primary user of the application or other things that need to be initialised for the first time开发者_如何学C when the application is started , how do i achive the same in django?


You want fixtures.

See Providing initial data for models in the Django docs for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消