Started app.py
This commit is contained in:
30
app.py
Normal file
30
app.py
Normal file
@@ -0,0 +1,30 @@
|
||||
from __future__ import annotations
|
||||
import os
|
||||
from datetime import datetime
|
||||
from flask import Flask, render_template, url_for, jsonify, Response
|
||||
app = Flask(__name__)
|
||||
app.secret_key = os.getenv("APP_SECRET_KEY")
|
||||
|
||||
|
||||
CONTACT = {
|
||||
"name": os.getenv("BH_CONTACT_NAME", "Benjamin Mosley"),
|
||||
"title": os.getenv("BH_CONTACT_TITLE", "E-Commerce Manager, United Supermarkets"),
|
||||
"email": os.getenv("BH_CONTACT_EMAIL", "ben@bennyshouse.net"),
|
||||
"phone": os.getenv("BH_CONTACT_PHONE", "(806) 655 2300"),
|
||||
"city": os.getenv("BH_CONTACT_CITY", "Canyon / Amarillo / Borger / Remote"),
|
||||
"cal": os.getenv("BH_CONTACT_CAL", "https://calendly.com/bennyshouse24/30min"),
|
||||
"link": os.getenv("BH_CONTACT_LINK", "https://www.linkedin.com/in/benjamin-mosley-849643329/"),
|
||||
"site": os.getenv("BH_CONTACT_SITE", "https://bennyshouse.net"),
|
||||
"hours": os.getenv("BH_CONTACT_HOURS", "Mon–Fri, 9a–5p CT"),
|
||||
}
|
||||
|
||||
@app.route("/")
|
||||
def home():
|
||||
return render_template("index.html")
|
||||
|
||||
@app.route("/about")
|
||||
def about():
|
||||
return render_template("about.html")
|
||||
|
||||
in __name_- == "__main__":
|
||||
app.run(debug=True)
|
||||
Reference in New Issue
Block a user