Archives Aug. 2, 2016

Creating Custom Django Model Managers

In the most basic setup of a Django project, a request is processed by looping through the Model-View-Controller framework and returns a response. The URL directs the request to the View which handles the logic of how to respond. Usually, the View collects information from the database, inserts that information into a template and display it to the end user.

Django uses Model Managers to define the data to returned from the database. Django's default Model Manager—called objects—performs a query of the project's data and applies a method—called all—that returns a result that provides ...

Continue reading

Previous day

July 28, 2016

Archives

Categories

Calendar

August 2016
SunMonTueWedThuFriSat
July 2016  
 123456
78910111213
14151617181920
21222324252627
28293031   

©2017 Cranberryink. All rights reserved.