From a3f3b49b2c9b7519a81d050cc2c6769a5a9a3291 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 1 Aug 2017 09:22:15 +0200 Subject: [PATCH] Add firsts templates --- app.py | 10 ++++++++++ requirements.txt | 0 templates/items/buscador.html | 13 +++++++++++++ templates/layouts/master.html | 14 ++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 app.py create mode 100644 requirements.txt create mode 100644 templates/items/buscador.html create mode 100644 templates/layouts/master.html diff --git a/app.py b/app.py new file mode 100644 index 0000000..7e9f6df --- /dev/null +++ b/app.py @@ -0,0 +1,10 @@ +from flask import Flask, render_template +app = Flask(__name__) +app.config['DEBUG'] = True + +@app.route('/') +def index(): + return render_template('items/buscador.html') + +if __name__ == '__main__': + app.run() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/templates/items/buscador.html b/templates/items/buscador.html new file mode 100644 index 0000000..6be7d84 --- /dev/null +++ b/templates/items/buscador.html @@ -0,0 +1,13 @@ +{% extends 'layouts/master.html' %} +{% block title %}Buscador{% endblock %} +{% block body %} +

Buscador

+
+
+
+ + +
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/layouts/master.html b/templates/layouts/master.html new file mode 100644 index 0000000..73c8b13 --- /dev/null +++ b/templates/layouts/master.html @@ -0,0 +1,14 @@ + + + + {% block title %}{% endblock %} | Vigilador de Wallapop + + + + + +
+ {% block body %}{% endblock %} +
+ + \ No newline at end of file