Before we start writing our web page, we need to create a route to create a user, as follows:
from flask import render_template
@app.route('/adduser')
def adduser():
return render_template('adduser.html')
Now that we have created the route, let's create a form in adduser.html, which will ask for the required information related to the user 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="main" class...