Before we start writing our web page, we need to create a route to create tweets. This can be done as follows:
from flask import render_template @app.route('/addtweets') def addtweetjs(): return render_template('addtweets.html')
Now that, we have created the route, let's create another form in addtweets.html, which will ask the user for the required information related to tweets, and help them submit the information:
<html> <head> <title>Twitter Application</title> </head> <body> <form > <div class="navbar"> <div class="navbar-inner"> <a class="brand" href="#">Tweet App Demo</a> </div> </div>
<div id=...