Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In the views.py file, what are the lines that start with @ for? For example, (Q)app.route('l') (D)app.route('/home') def home(): They are sent to the template.html
In the views.py file, what are the lines that start with @ for? For example, (Q)app.route('l') (D)app.route('/home') def home(): They are sent to the template.html file They are simply reserving these URLs so other websites can't use them They tell Flask to run home() function when browser requests the URLs " and "/home" They are there for the programmers so they know which URL they are writing the function for
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started