What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-22 05:10:11
my-aws-lab
#!/bin/bash -exwget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zipunzip FlaskApp.zipcd FlaskApp/yum -y install python3 mysqlpip3 install -r requirements.txtamazon-linux-extras install epelyum -y install stressexport P... Add solution -
Python 2021-10-21 06:57:04
create internal etl for people to upload data with python and flask
from flask import Flask, render_template, requestfrom werkzeug import secure_filenameapp = Flask(__name__)@app.route('/upload')def upload_file(): return render_template('upload.html') @app.route('/uploader', methods = ['GET', 'POST'])def upload_file(): ... Add solution -
Python 2021-10-20 16:58:10
display flask across network
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return "Hello world!" if __name__ == '__main__': app.debug = True app.run(host="0.0.0.0") #host="0.0.0.0" will make the page accessable ... Add solution -
Other 2021-10-19 16:24:11
.gitignore for django
# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *... Add solution -