Started app.py

This commit is contained in:
2025-11-23 16:01:02 +00:00
parent 6c630365d3
commit 6b9d02ae33

30
app.py Normal file
View 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", "MonFri, 9a5p 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)