diff --git a/app.py b/app.py index e1c384b..0a8dd74 100644 --- a/app.py +++ b/app.py @@ -1,11 +1,11 @@ -from flask import Flask, redirect, url_for, render_template +from flask import Flask, render_template app = Flask(__name__) @app.route('/') def home(): - return render_template('index.html', content=5) + return render_template('index.html') if __name__ == '__main__': - app.run() \ No newline at end of file + app.run(debug=True) \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..bc91076 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,22 @@ + +
+ +{{x}}
- {% endfor %} -{{x}}
- - - \ No newline at end of file +{% extends "base.html" %} +{% block title %}Homepage{% endblock %} +{% block content %}