|
|
1
2
不确定您想做什么,但您可以在应用程序中编写一个管理模块,用于监听 post_syncdb 信号。 但是,如果您只想填充数据库,那么最好使用fixture: http://docs.djangoproject.com/en/dev/howto/initial-data/ |