Last active
September 22, 2022 04:40
-
-
Save adithyan-ak/7dcae081426deb8733c8754ea8684508 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, render_template_string, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def main(): | |
template = '''<h2> Welcome to Super Secure Website <h2>''' | |
return render_template('index.html') | |
@app.errorhandler(404) | |
def page_not_found(e): | |
raise | |
app.run(host="0.0.0.0",port=80,debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment