diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..be6fbf8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/mnt/code/web/pecha.red/venv/bin/python3.8" +} \ No newline at end of file diff --git a/app.py b/app.py new file mode 100755 index 0000000..6919a4b --- /dev/null +++ b/app.py @@ -0,0 +1,7 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def render_home(): + return render_template("home.html") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..46a48dd --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Flask==1.1.2 diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..9bc75dd --- /dev/null +++ b/static/style.css @@ -0,0 +1,3 @@ +body { + margin: 0; +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..218dab6 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + {% block title %}{% endblock %} - pecha.red + + + + + + + + + + {% block content %}{% endblock %} + + diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..3fe3568 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,5 @@ +{% extends 'base.html' %} +{% block title %}home{% endblock %} +{% block content %} +

PECHA.RED

+{% endblock %}