Browse Source

added pesrpective a

master
alicestrt 4 years ago
parent
commit
2595e783de
  1. BIN
      __pycache__/hello.cpython-36.pyc
  2. 7
      hello.py
  3. 9
      templates/perspectiveA.html

BIN
__pycache__/hello.cpython-36.pyc

Binary file not shown.

7
hello.py

@ -8,7 +8,6 @@ def hello_world():
return 'Hello, World!' return 'Hello, World!'
@app.route('/hello/') @app.route('/perspectiveA/')
@app.route('/hello/<name>') def perspectiveA():
def hello(name=None): return render_template('perspectiveA.html')
return render_template('hello.html', name=name)

9
templates/perspectiveA.html

@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>Perspective A</title>
</head>
<body>
<h1>persssss</h1>
</body>
</html>
Loading…
Cancel
Save