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.
精彩评论