File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111def hello_world ():
1212 return render_template ('index.html' )
1313
14- @app .route ('/signup.html ' , methods = ['POST' ])
14+ @app .route ('/signup' , methods = ['POST' ])
1515def signup ():
1616 email = request .form ['email' ]
1717 email_addresses .append (email )
Original file line number Diff line number Diff line change 5050 < div id ="banner ">
5151 < h1 > cats everywhere</ h1 >
5252 < p class ="lead "> We're bringing cats to the internet. Free. Cute. Awesome.</ p >
53- < form action ="signup.html " method ="post ">
53+ < form action ="/ signup " method ="post ">
5454 < input type ="text " name ="email "> </ input >
5555 < input type ="submit " value ="Signup "> </ input >
5656 </ form >
Original file line number Diff line number Diff line change 88def hello_world ():
99 return render_template ('index.html' )
1010
11- @app .route ('/signup.html ' , methods = ['POST' ])
11+ @app .route ('/signup' , methods = ['POST' ])
1212def signup ():
1313 email = request .form ['email' ]
1414 print ("The email address is '" + email + "'" )
Original file line number Diff line number Diff line change 5050 < div id ="banner ">
5151 < h1 > cats everywhere</ h1 >
5252 < p class ="lead "> We're bringing cats to the internet. Free. Cute. Awesome.</ p >
53- < form action ="signup.html " method ="post ">
53+ < form action ="/ signup " method ="post ">
5454 < input type ="text " name ="email "> </ input >
5555 < input type ="submit " value ="Signup "> </ input >
5656 </ form >
You can’t perform that action at this time.
0 commit comments