-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
48 lines (33 loc) · 1.06 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def home():
return 'Hello'
@app.route("/celiyfede")
def otra():
return render_template('celifede.html')
@app.route("/welcome")
def welcome():
return render_template('welcome.html')\
@app.route("/template")
def template():
return render_template('index.html')
@app.route("/profiles")
def profiles():
usuarios = ['celi', 'belu', 'flami', 'santa claus']
return render_template('profiles.html', usuarios = usuarios)
@app.route("/profile/<nombre>")
def profile(nombre):
return render_template('profile.html', first_name = nombre)
@app.route("/register-profile")
def register_profile():
name = request.args['firstName']
name2 = request.args['lastName']
password = request.args['password']
nascita = request.args['birthdate']
return render_template('register-profile.html', name=name, name2 = name2, nascita=nascita)
@app.route("/register")
def register():
return render_template('register.html')
if __name__ == "__main__":
app.run()