arasioils / main.py
Ansaribinhyder's picture
Updating all the necessary files
fbf553d
raw
history blame contribute delete
374 Bytes
from flask import Flask, render_template
from flask_compress import Compress
import socket
host_name = socket.gethostname()
host_name_ipaddress = socket.gethostbyname(host_name)
app = Flask(__name__)
Compress(app)
@app.route('/')
def get_all_posts():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=False,host="0.0.0.0",port=8190)