阅读背景:

在Django中执行模型创建代码

来源:互联网 

I want to execute some code in a Django model when it is first created. After that whenever it is saved I want to execute some other code. The second task can be easily done by overriding the save() method. How can I do the first task?I want to execute some code in a Django model w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: