for specific information when you're writing queries like these in your own projectsit' very helpful to try them out in the django shell first you'll get much quicker feedback in the shell than you will by writing view and template and then checking the results in browser note the topic template the template needs to display the name of the topic and the entries we also need to inform the user if no entries have been made yet for this topictopic html {extends 'learning_logs/base html%{block content % topic{topic }entries{for entry in entries %{entry date_added|date:' dy : }{entry text|linebreaks }{empty %there are no entries for this topic yet {endfor %{endblock content %we extend base htmlas we do for all pages in the project nextwe show the topic that' currently being displayed uwhich is stored in the template variable {topic }the variable topic is available because it' included in the context dictionary we then start bulleted list to show each of the entries and loop through them as we did the topics earlier each bullet will list two pieces of informationthe timestamp and the full text of each entry for the timestamp xwe display the value of the attribute date_added in django templatesa vertical line (|represents template filter -- function that modifies the value in template variable the filter date:' dy :idisplays timestamps in the format january : the next line displays the full value of text rather than just the first characters from entry the filter linebreaks ensures that long text entries include line breaks in format understood by browsers rather than showing block of uninterrupted text at we use the {empty %template tag to print message informing the user that no entries have been made getting started with django