Esempio n. 1
0
#!/usr/bin/env python
from flaskexample import app
#app.run(host='0.0.0.0', port=5000, debug = True)
if __name__ == '__main__':
    app.run(debug=True)
Esempio n. 2
0
#!/usr/bin/env python
from flaskexample import app

#app.run(ssl_context('cert.pem','key.pem'), debug=True)
app.run(host='0.0.0.0', debug=True)

Esempio n. 3
0
#!/usr/bin/env python

# Retrieve and execute startup file to get the right
# paths
#import os
#filename = os.environ.get('PYTHONSTARTUP')
#if filename and os.path.isfile(filename):
#    with open(filename) as fobj:
#       startup_file = fobj.read()
#    exec(startup_file)



from flaskexample import app
app.run(debug = True, host='0.0.0.0', port=5000)

Esempio n. 4
0
#!/Users/plestran/Dropbox/insight/insight-env/bin/python
from flaskexample import app

app.run(ssl_context=('cert.pem', 'key.pem'),debug=True)
#app.run(debug = True)
Esempio n. 5
0
#!/usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0', debug = True, port=5000)
Esempio n. 6
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == '__main__':
	app.run(host='0.0.0.0')
Esempio n. 7
0


from flaskexample import app
#app.run(debug = True)
#app.run(debug=True, host='0.0.0.0', port=8000)
app.run(port=8000)

#app.run(debug=True, host='0.0.0.0', port=5000)
Esempio n. 8
0
#!/Users/kirkansin/anaconda3/envs/word2vec/bin/python3
#!/usr/bin/python3
from flaskexample import app
if __name__ == '__main__':
    app.run(host='0.0.0.0') 
Esempio n. 9
0
#!/usr/bin/env python
from flask import render_template, make_response
from flaskexample import app
from functools import wraps, update_wrapper

app.run(host="0.0.0.0", debug=True)
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = 0


@app.route("/", methods=["GET", "POST"])
def index():
    return render_template("loans.html")
Esempio n. 10
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=True, use_reloader=True)
Esempio n. 11
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=False, host='0.0.0.0')
Esempio n. 12
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug = True,host = "0.0.0.0")
Esempio n. 13
0
#!/usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0',port=5002,threaded=True,debug=True)
Esempio n. 14
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == "__main__":
	app.run(host='0.0.0.0', port = 5000, debug = True)
Esempio n. 15
0
#!/usr/bin/env python
from flaskexample import app
app.run('0.0.0.0', debug = True)
Esempio n. 16
0
#! /usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0', port=3001, debug=True)
Esempio n. 17
0
#!/usr/bin/env python
from flaskexample import app

if __name__ == "__main__":
	app.run(host='0.0.0.0', port=5000,debug=True)
Esempio n. 18
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 28 16:26:08 2019

@author: dbm
"""

from flaskexample import app
import os

port = int(os.environ.get('PORT', 5000))

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=port)
Esempio n. 19
0
#!/usr/bin/env python
from flaskexample import app

#app.run(debug = True)

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=5000)
#!/usr/bin/env python
from flaskexample import app
#app.run(debug = True)
if __name__ == '__main__':
	app.run(host='0.0.0.0', port=80)
Esempio n. 21
0
#!/usr/bin/env python
from flaskexample import app
# from dotenv import load_env
app.secret_key = 'super secret key'
app.run(host='0.0.0.0', port=8080, debug=True)
Esempio n. 22
0
        # method, but if you do, you can access them like so:
        yourarg = flask.request.args.get('argname')
        your_register_template_rendering(yourarg)







@app.route('/new')
def assign_time():
    #if the input of the user in the html page for the timebox is A, set the i values to a certain thing
    #get the timeinterval value
    a1 = request.arg.get(timeinterval)
    return a1
    #use this a1 to be the index for the sql distribution of activity
    








if __name__ == "__main__":
    app.debug = True
    db.create_all()
    app.run()
Esempio n. 23
0

## ====== web app links ======
## read index page
@app.route('/')
@app.route('/index.html')
def index():
    return render_template(
        "index.html",
        title='Home',
        user={'nickname': 'company'},
    )


if __name__ == "__main__":
    app.run(host="0.0.0.0", port=80)


## read resume page
@app.route('/resume')
def resume():
    return send_file("resume_Yu-Yen_Chang.pdf", as_attachment=True)


## read project page
@app.route('/project.html')
def project():
    return render_template("project.html")


## read blog page
Esempio n. 24
0
#!/usr/bin/env python
from flaskexample import app as application

if __name__ == '__main__':
    application.run()
Esempio n. 25
0
#! /usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0')  #,ssl_context='adhoc')
Esempio n. 26
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == '__main__':
    app.run(debug=False, threaded=False)
Esempio n. 27
0
#! /usr/bin/env python
from flaskexample import app
app.run(debug=True,threaded=True)
Esempio n. 28
0
#!/Users/lacar/anaconda/envs/insight/bin/python

# Notes:
# run in virtual environment (insight)

from flaskexample import app
app.run(debug=True, host='0.0.0.0')
Esempio n. 29
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=True, host='0.0.0.0', port=8080)
Esempio n. 30
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug = True)
Esempio n. 31
0
#!/usr/bin/env python
from flaskexample import app
app.run('0.0.0.0', debug=True)