Skip to Content
Practical Django Projects, Second Edition
book

Practical Django Projects, Second Edition

by James Bennett
June 2009
Intermediate to advanced content levelIntermediate to advanced
274 pages
7h 56m
English
Apress
Content preview from Practical Django Projects, Second Edition

C H A P T E R   5

image

Expanding the Weblog

So far you've written two models for your weblog application—Category and Entry—and set up views that will display the entries in the weblog. You still have some work to do to set up all the different views you'll want for the entries; however, before you do that, let's go back and finish up the weblog's data models by adding the final model class.

Writing the Link Model

Just as the fields on the Entry model logically broke down into groups according to how they would be used, the model you'll use to represent links—a class called Link—will need fields for several different purposes:

  • Core fields representing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Django Project Blueprints

Django Project Blueprints

Asad Jibran Ahmed

Publisher Resources

ISBN: 9781430219385Purchase book