Django for Designers/Adding models: Difference between revisions

Content added Content deleted
imported>Paulproteus
imported>Paulproteus
(→‎Dealing with errors: Increase clarity on editing tag.html)
Line 722: Line 722:
==== Dealing with errors ====
==== Dealing with errors ====


Let's update our tag.html template to use the same formatting as index.html. Since we're using the same formatting for the list of bookmarks, and there aren't any other content block differences between index.html and tag.html, we can simply modify our tag template to inherit from index.html. Then the only block we need to overwrite is the subheader:
Let's update our tag.html template to use the same formatting as index.html. Since we're using the same formatting for the list of bookmarks, and there aren't any other content block differences between index.html and tag.html, we can simply modify our tag template to inherit from index.html. Edit ''tag.html'' to have only the following contents. (That means you can remove the mockup "block content" section. Yay!)


<source lang="html4strict">
<source lang="html4strict">