Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created June 30, 2013 14:33
Show Gist options
  • Save RobSpectre/5895373 to your computer and use it in GitHub Desktop.
Save RobSpectre/5895373 to your computer and use it in GitHub Desktop.
Quick example of Flask templating
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
if __name__ == "__main__":
app.run()
<!-- This file should be in the ./templates subdirectory. -->
<html>
<body>
<h1>HELLLLLLLLLLLLLLOOOO WORLD!</h1>
</body>
</html>
@venk404
Copy link

venk404 commented Dec 24, 2022

how can i run this in github pages

Error 404 is showing when i try to run this flask project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment