Here is the code of my application I am trying to run:
from flask import Flask, request, render_template
import json
import requests
import socket
from datetime import datetime
import pickle
import time
import pandas as pd
import numpy as np
@app.route('/index.html')
def index():
return render_template('index.html')
@app.route('/tables.html')
def tables():
return render_template('tables.html')
@app.route('/flot.html')
def flot():
return render_template('flot.html')
@app.route('/morris.html')
def morris():
return render_template('morris.html')
@app.route('/forms.html')
def forms():
return render_template('forms.html')
@app.route('/panels-wells.html')
def panelswells():
return render_template('panels-wells.html')
@app.route('/buttons.html')
def buttons():
return render_template('buttons.html')
@app.route('/notifications.html')
def notifications():
return render_template('notifications.html')
@app.route('/typography.html')
def typography():
return render_template('typography.html')
@app.route('/icons.html')
def icons():
return render_template('icons.html')
@app.route('/blank.html')
def blank():
return render_template('blank.html')
@app.route('/login.html')
def login():
return render_template('login.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080, debug=True, threaded=True)
pass
Here is how I ran it:
C:\Users\aims\Desktop\forex>python forex_app.py
* Serving Flask app "forex_app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 122-288-656
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
* Detected change in 'C:\\Users\\aims\\Desktop\\forex\\forex_app.py', reloading
* Restarting with stat
* Debugger is active!
* Debugger PIN: 122-288-656
After hitting the url as: http://0.0.0.0:8080 or even http://0.0.0.0:8080/index.html I see the following screen:

Kindly, help me what I am missing. I have the html templates available in the templates folder. See the image:

Please let me know.