repl.it
Python

My main site, at python-b5.com.

fork
loading
Files
  • main.py
  • static
  • templates
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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('/games')
def games():
    return render_template("games.html")

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

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

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8080)
?