Expression detail page
Add a document detail page.
In this section
Displaying the details and content of an expression
Expression detail page
Now let's add an expression detail page that shows the content of a single expression of a work.
Add a new view to your views.py
:
views.py
Add the new view to your urls.py
:
urls.py
Now create a template called templates/reader/expression_detail.html
. We'll start with just the title and the expression content.
expression_detail.html
If there are other expressions on the same work (different language or date), how would the user find them?
If you visit an expression detail page, you'll see the title and some ugly content. In the next section we'll add formatting to the content.
Last updated