This decorator makes login required to access parts of the site. Copy from django.com trip... decorators import login under score requirement we're going to create a user profile page only users who are logged in will be able to access this page to open profiles views dot key. Why and paste what we just copied directly on the line one. Copy the entire. Paste this. 15. Call this view user profile. Add margin under score required. Define user profile below which user pulls request dot user. Place the context variable as user called user. And the template played variable as profile dot HTML. Put the at logged in under score required decorator above the view. Now the view will only process requests if the user is logged in. If the user is not logged in, you will be redirected to the login page. We need to create the template profiles dot HTML. So create a file and save this file and the profiles templates as profile dot HTML. Go ahead and open profiles on HTML and right into line one extends based on HTML. We're also going to establish a content block between lines three and eight. The content on line five and six stating user dot username user dot email. Once this is complete, save this file. We now need to make a new URL for the profile page to open tritent URLs dot PY. 27 copy the URL and paste it on to like 28. Now adjust for the new profile page. When we go to slash profile, this URL will direct the request to the user profile view. Saved URLs dot key. Why open up Chrome? Go to slash profile. See our username and email address bar login. Go back to slash profile. Because of the app login, under score required decorator in our view were redirected to the login page. Put in your details and login and you'll be redirected to the profile page. Go back to getstrap.com. To make a home page look better, use bootstrap from the NAV bar. Click on getting started from the right panel, click examples. Click on the Jumbotron example. We want to use some of these unnatural page right click and hit inspect element. Bad tonight. Click the arrow to expand. DIFF class equals container. Inside this container, right click on division class equals row. Edit as HTML. Copy all this HTML. Templates home dot HTML. We're gonna paste all the code that we just copied after our header. One currently says Hello World. While deleting that line. Save home dot HTML and refresh the home page. On the bottom of the home page now there is a rope. Sections will put our login form into one of these sections. Make sure you're logged out and go to slash login. In the middle of the form, right click and hit inspect element. Second, right? Class equals login. Second. delete the input line. CSR F under score token blowing. This will be removing line 33.