Adding templates dir and base.html
This commit is contained in:
parent
5415d80733
commit
0e7b589858
|
@ -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')
|
||||||
|
|
|
@ -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>
|
|
@ -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 %}
|
Loading…
Reference in New Issue