mirror of
https://github.com/assenzostefano/class-website.git
synced 2025-06-06 00:39:12 +02:00
Upload all new files
This commit is contained in:
25
app.py
Normal file
25
app.py
Normal file
@ -0,0 +1,25 @@
|
||||
from flask import Flask, render_template, request, redirect, session
|
||||
import requests
|
||||
import os
|
||||
|
||||
app = Flask(__name__)
|
||||
IMAGE_FOLDER = os.path.join('static', 'images')
|
||||
app.config['UPLOAD_FOLDER'] = IMAGE_FOLDER
|
||||
|
||||
@app.route('/')
|
||||
def homepage():
|
||||
return render_template('html/index.html')
|
||||
#imageList = os.listdir('static/images')
|
||||
#imageList = ['images/' + image for image in imageList]
|
||||
#return render_template('go.html', imageList=imageList)
|
||||
|
||||
@app.route('/orario')
|
||||
def orario():
|
||||
return render_template('html/orario.html')
|
||||
|
||||
@app.route('/calendario')
|
||||
def calendario():
|
||||
return render_template('html/calendario.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
Reference in New Issue
Block a user