예제 #1
0
파일: run.py 프로젝트: yinghan28/web_app
#!/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)
예제 #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)

예제 #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)

예제 #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)
예제 #5
0
#!/usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0', debug = True, port=5000)
예제 #6
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == '__main__':
	app.run(host='0.0.0.0')
예제 #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)
예제 #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') 
예제 #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")
예제 #10
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=True, use_reloader=True)
예제 #11
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=False, host='0.0.0.0')
예제 #12
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug = True,host = "0.0.0.0")
예제 #13
0
#!/usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0',port=5002,threaded=True,debug=True)
예제 #14
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == "__main__":
	app.run(host='0.0.0.0', port = 5000, debug = True)
예제 #15
0
#!/usr/bin/env python
from flaskexample import app
app.run('0.0.0.0', debug = True)
예제 #16
0
#! /usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0', port=3001, debug=True)
예제 #17
0
#!/usr/bin/env python
from flaskexample import app

if __name__ == "__main__":
	app.run(host='0.0.0.0', port=5000,debug=True)
예제 #18
0
파일: run.py 프로젝트: debshila/gist-do-it
#!/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)
예제 #19
0
파일: run.py 프로젝트: reworkhow/web_app
#!/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)
예제 #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)
예제 #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()
예제 #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
예제 #24
0
#!/usr/bin/env python
from flaskexample import app as application

if __name__ == '__main__':
    application.run()
예제 #25
0
#! /usr/bin/env python
from flaskexample import app
app.run(host='0.0.0.0')  #,ssl_context='adhoc')
예제 #26
0
#!/usr/bin/env python
from flaskexample import app
if __name__ == '__main__':
    app.run(debug=False, threaded=False)
예제 #27
0
#! /usr/bin/env python
from flaskexample import app
app.run(debug=True,threaded=True)
예제 #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')
예제 #29
0
#!/usr/bin/env python
from flaskexample import app
app.run(debug=True, host='0.0.0.0', port=8080)
예제 #30
0
파일: run.py 프로젝트: along528/insight
#!/usr/bin/env python
from flaskexample import app
app.run(debug = True)
예제 #31
0
#!/usr/bin/env python
from flaskexample import app
app.run('0.0.0.0', debug=True)