进行查询 Creating objects Saving changes to objects Saving ForeignKey and ManyToManyField fields Retrieving objects Retrieving all objects Retrieving specific objects with filters ...
Making queries Creating objects Saving changes to objects Saving ForeignKey and ManyToManyField fields Retrieving objects Retrieving all objects Retrieving specific objects w...
Homework: add more to your website! Save new posts as drafts Page with list of unpublished posts Add publish button Delete post Homework: add more to your website! Our blog...
Get Writing! Get Writing! One of the things our students have found most helpful to solidify their understanding of this material is to write it down. There is no better test o...
CacheInterceptor可以将action所需数据全部缓存起来,下次请求到来时如果cache存在则直接使用数据并render,而不会去调用action。此用法可使action完全不受cache相关代码所污染,即插即用,以下是示例代码: @Before ( CacheInterceptor . class ) public void l...
加载相关数据Loading Related Data 预先加载Eager loading 包含多个层级Including multiple levels 经过筛选的包含Filtered include 派生类型上的包含Include on derived types 显式加载Explicit loading 查询相关实体Querying relate...