Skip to content
Snippets Groups Projects
Verified Commit f12e3550 authored by Robert Metcalf's avatar Robert Metcalf
Browse files

add basic flask server and main template based on home.html

parent 74c3fee6
No related branches found
No related tags found
1 merge request!4Add Flask server, templates and initial database support
__pycache__/
.vscode/
main.py 0 → 100644
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route("/", methods = ["GET"])
def home():
if request.method == "GET":
return render_template("home.html")
if __name__ == "__main__":
app.run(debug = True)
{% extends "main.html" %}
{% block title %}Home{% endblock %}
\ No newline at end of file
......@@ -12,7 +12,7 @@
"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<title>Hello</title>
<title>{% block title %}{% endblock %} - Tramshed Workspaces</title>
</head>
<div class="parallax">
......@@ -26,4 +26,7 @@
<li><a href="#contactUs">Contact Us</a></li>
<li style="float:right"><a class="active" href="#about">About</a></li>
</ul>
</nav><br><br><br>
</nav>
{% block mainBlock %}{% endblock %}
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment