Question: Python Write a decorator and a view (handler) function such that if a visitor navigates to either '/' or /home', the file 'home.html' is rendered
Python 
Write a decorator and a view (handler) function such that if a visitor navigates to either '/' or /home', the file 'home.html' is rendered on the website only if the visitor is successfully logged in. You don't need to write the import statements. Python code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
