Python

My main site, at python-b5.com.

fork
loading
Files
  • main.py
  • static
  • templates
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from flask import Flask, render_template

app = Flask(__name__, subdomain_matching=True)
app.config["SERVER_NAME"] = "www.python-b5.com"

@app.route('/')
def index():
    return render_template("index.html")

@app.route('/about')
def about():
    return render_template("about.html")

@app.route('/contact')
def contact():
    return render_template("contact.html")

app.run(host='0.0.0.0', port=8080)