Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How project success is usually assessed?

Answered: 1 week ago