Django for Designers: Difference between revisions

→‎Django templates 101: Where do you put the tag template?
imported>Paulproteus
imported>Paulproteus
(→‎Django templates 101: Where do you put the tag template?)
Line 542:
Our tag view gets fed in a variable we can use -- the name of the tag, so we add that to the context. That makes it available to the template to render.
 
Let's make our tag template:. To do that, create a new file called ''tag.html'' in the same directory as ''index.html''.
 
<source lang="html4strict">
Anonymous user