{csrf_token %{form as_p }add topic {endblock content %this template extends base htmlso it has the same base structure as the rest of the pages in learning log at we define an html form the action argument tells the server where to send the data submitted in the formin this casewe send it back to the view function new_topic(the method argument tells the browser to submit the data as post request django uses the template tag {csrf_token % to prevent attackers from using the form to gain unauthorized access to the server (this kind of attack is called cross-site request forgeryat we display the formhere you see how simple django can make tasks such as displaying form we only need to include the template variable {form as_p }for django to create all the fields necessary to display the form automatically the as_p modifier tells django to render all the form elements in paragraph formatwhich is simple way to display the form neatly django doesn' create submit button for formsso we define one at linking to the new_topic page nextwe include link to the new_topic page on the topics pagetopics html {extends "learning_logs/base html%{block content %topics --snipadd new topic{endblock content %place the link after the list of existing topics figure - shows the resulting form go ahead and use the form to add few new topics of your own user accounts