All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 22s
19 lines
469 B
Python
19 lines
469 B
Python
import os,random
|
|
from flask import Flask, render_template
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def home():
|
|
bg_files = os.listdir("static/img/backgrounds")
|
|
bg = random.choice(bg_files)
|
|
return render_template("index.html", title="Accueil", background=bg)
|
|
|
|
@app.route("/projects")
|
|
def projects():
|
|
return render_template("projects.html", title="Projets")
|
|
|
|
@app.route("/contact")
|
|
def contact():
|
|
return render_template("contact.html", title="Contact")
|