Fixed application for wsgi
This commit is contained in:
parent
e2563ea5a8
commit
e0985a9f75
8
main.py
8
main.py
@ -3,8 +3,8 @@ from twitch import TwitchClient
|
||||
from pprint import pprint
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['DEBUG'] = True
|
||||
application = Flask(__name__)
|
||||
application.config['DEBUG'] = True
|
||||
|
||||
|
||||
try:
|
||||
@ -23,10 +23,10 @@ def get_followed():
|
||||
#for stream in streams_live:
|
||||
# print("%s: \t\t\t%s Logo is: %s" %(stream["channel"]["display_name"], stream["channel"]["game"],stream["channel"]["logo"]))
|
||||
|
||||
@app.route('/')
|
||||
@application.route('/')
|
||||
def index():
|
||||
livestreamdata = get_followed()
|
||||
return render_template('index.html', livestreamdata=livestreamdata)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
||||
application.run(host='0.0.0.0')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
var domain = "test.benjamyn-testing.com"
|
||||
var domain = "http://test.benjamyn-testing.com"
|
||||
function loadContent() {
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.onreadystatechange = function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user