Adding templates dir and base.html

This commit is contained in:
Alex Wright 2018-11-17 09:24:40 +01:00
parent 5415d80733
commit 0e7b589858
3 changed files with 25 additions and 2 deletions

View File

@ -1,9 +1,9 @@
import logging import logging
from flask import Flask, Response from flask import Flask, render_template
app = Flask(__name__) app = Flask(__name__)
app.logger.setLevel(logging.INFO) app.logger.setLevel(logging.INFO)
@app.route('/') @app.route('/')
def index(): def index():
return Response('HI!') return render_template('landing.html')

View File

@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<title>FileDrop App</title>
</head>
<body>
<main>
{% block main %}
<p>
Nothing to see here.
</p>
{% endblock %}
</main>
</body>
</html>

View File

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block main %}
<h1>FileDrop App</h1>
<div>
Form to select and upload files will go here.
</div>
{% endblock %}