Compare commits

..

No commits in common. "2b27911acccf7de8216a3e8356a776e10d09fee0" and "a7725094df21e6552a61fc1d9cb9320aa5f04bd8" have entirely different histories.

4 changed files with 4 additions and 31 deletions

5
app.py
View File

@ -1,5 +1,5 @@
# Fichier principal
from flask import Flask, escape, request, url_for
from flask import Flask, escape, request
import pages
app = Flask(__name__)
@ -7,6 +7,3 @@ app = Flask(__name__)
@app.route('/')
def main():
return pages.main()
if __name__=="__main__":
app.run(debug=True)

View File

@ -1,7 +1,4 @@
from flask import render_template
import definitions as lib
# Fonctions qui seront associées à des URLs
def main():
return render_template("main.html")
return lib.read("templates/main.html")

View File

@ -1,13 +0,0 @@
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" src="static/style.css">
</head>
<body>
<h1>Bienvenue !</h1>
<p>Ceci est la page d'accueil !</p>
</body>
</html>
<h1>Bienvenue !</h1>
<p>Ceci est la page d'accueil !</p>