diff --git a/app.py b/app.py index 8588257..1f1dd54 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ def index(): cs.execute(statement) return render_template("index.html", comments=cs.fetchall()) -@app.route('/submit', methods=["POST"]) +@app.route('/gb/submit', methods=["POST"]) def submit(): errors = [] name = request.form.get("name") @@ -46,4 +46,5 @@ def submit(): values = (name, website, comment, int(time.time()), str(request.remote_addr)) cs.execute(statement, values) db.commit() - return redirect("/") \ No newline at end of file + #change this if you run it on anything other than /gb + return redirect("/gb") \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index fb80a67..8fe7c7f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ -
+