O'Reilly logo

Django Unleashed by Andrew Pinkham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.8 Putting It All Together

In Chapter 3, we saw how Django handles data. Django maps the Models of MVC (Model-View-Controller) directly on models, providing a way to organize and manipulate data.

Django models and model fields are simply Python classes. Django sets up very precise conventions, expecting class attributes of models to be instances of Django fields. Because Django is simply Python, however, developers can interact with models and fields just as they would with classes and attributes. Developers may in turn add methods to these models. What’s more, Django provides simple declarative syntax via field options and nested Meta classes to customize field and model behavior without needing to write complicated code.

By convention, Django ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required