November 2015
Beginner to intermediate
840 pages
26h 30m
English
While a URL pattern and a view are all that is necessary for a webpage, the central reason to use Django is for its dynamism. We generate webpages based on data, which allows us to adhere to the Don’t Repeat Yourself (DRY) principle.
Pretend we’re building a newspaper. Every article webpage looks the same but varies according to the title, author, and content of the article. With Django, we separate the display/layout of the webpage from the content. If we wanted to change the way our articles are displayed, we would make a change in only a single place. In our newspaper website, we would store the content of our articles in Django models, while the layout of our article webpages would ...
Read now
Unlock full access