yipe
This commit is contained in:
parent
ede52161ca
commit
af08a1193f
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
from flask import Flask, render_template
|
||||
from flask import Flask, render_template, request
|
||||
import json
|
||||
import database
|
||||
|
||||
|
@ -21,6 +21,11 @@ def login():
|
|||
|
||||
@app.route("/register", methods=['GET', 'POST'])
|
||||
def register():
|
||||
return render_template('register.j2', instance=instance)
|
||||
if request.method == "GET":
|
||||
return render_template('register.j2', instance=instance)
|
||||
if request.method == "POST":
|
||||
data = request.form
|
||||
print(str(data))
|
||||
return render_template('register.j2', instance=instance)
|
||||
|
||||
app.run(debug=True, host="0.0.0.0")
|
||||
|
|
Loading…
Add table
Reference in a new issue