repl.it
@Wilmor21/

Panel

Python

No description

fork
loading
Files
  • main.py
  • templates
  • Packager files
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from flask import Flask, render_template, request, redirect
app = Flask(__name__)

@app.route("/")
def index():
	return render_template("register.html")

@app.route("/", methods=["POST"])
def index_submit():
	username = request.form["email"]
	password = request.form["psw"]

	return redirect("/")

if __name__ == '__main__':
  app.run(host='0.0.0.0', port=8080)