from flask import Flask, render_template, session app = Flask(__name__) app.secret_key = "debug key" @app.route("/") def hello(): session['userid'] = 1 # session.clear() if 'userid' in session: return render_template("home.html") else: return render_template("front_page.html") @app.route("/welcome") def welcome(): return render_template("welcome.html") @app.route("/about") def about(): return render_template("about.html") @app.route("/login") def show_login_page(): return render_template("login.html", signup = False) @app.route("/signup") def show_signup_page(): return render_template("login.html", signup = True) @app.route("/settings") def settings(): return render_template("settings.html") @app.route("/bot/edit/") def bot_edit(id): return render_template("bot_edit.html") @app.route("/bot/delete/") def bot_delete(id): return render_template("bot_delete.html") @app.route("/bot/create/") def bot_create(): session['step'] = 4 session['instance'] = "botsin.space" session['instance_type'] = "Mastodon" return render_template("bot_create.html")