Skip to content

Instantly share code, notes, and snippets.

View tutecode's full-sized avatar
🏠
Working from home

TuteCode tutecode

🏠
Working from home
View GitHub Profile
@tutecode
tutecode / layout.html
Created May 31, 2022 11:15
web app flask python
<!DOCTYPE html>
<html lang= "en">
<head>
<!--- Meta tags ---->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
@tutecode
tutecode / run.py
Created May 31, 2022 10:38
web page with python flask
from flask import Flask, render_template, url_for
#instantiate the flask app
app= Flask(__name__)
#create each of the routes. The home page route
@app.route("/")
@app.route("/home")
def home():
return render_template('home.html')