flask
This commit is contained in:
14
dzien_02/www/aplikacja_web.py
Normal file
14
dzien_02/www/aplikacja_web.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from flask import Flask
|
||||
app = Flask("Adam")
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return '<h2>Welcome!</h2><br><a href="druga"> aaaa</a>'
|
||||
|
||||
@app.route("/druga")
|
||||
def druga():
|
||||
return "<h3>Welcome again!</h3>"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
Reference in New Issue
Block a user