开发者

bootsrapping in django

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜