diff --git a/app.py b/app.py index 418e7e2..0054bd1 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,7 @@ import os import sys -from flask import Flask, request +from flask import Flask, request, render_template from contextlib import closing from urllib.request import urlopen import json @@ -23,8 +23,8 @@ def config(): # put application's code here @app.route('/') -def hello_world(): # put application's code here - return 'Hello World!' +def index(): + return render_template('index.html') # Recherche d'une ville diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..2eee0d5 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,6 @@ +h1 { + border: 2px #eee solid; + color: red; + text-align: center; + padding: 10px; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7d0da28 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,11 @@ + + + + + + Flask App + + +

Welcome to Flask

+ + \ No newline at end of file