Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

WARNING: This is a development server. Do not use it in a production deployment.

$ export FLASK_APP=example
$ export FLASK_ENV=development
$ flask run
Comment

WARNING: This is a development server. Do not use it in a production deployment.

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "<h1>Hello World!</h1>"

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Comment

PREVIOUS NEXT
Code Example
Python :: mouse in pygame 
Python :: how to get a list of all values in a column df 
Python :: text to ascii art python 
Python :: resize image array python 
Python :: python check if list contains elements of another list 
Python :: get columns based on dtype pandas 
Python :: create pyspark session with hive support 
Python :: redirect to the same page django 
Python :: slugify python 
Python :: Extract categorical data features 
Python :: count words python 
Python :: flask getting started 
Python :: check package version jupyter python 
Python :: python module for converting miles to km 
Python :: virtualenv with specific python version 
Python :: python pygame key input 
Python :: how to split channels wav python 
Python :: pandas groupby count unique rows 
Python :: Change date format on django templates 
Python :: write set to txt python 
Python :: square (n) sum 
Python :: virtualenv -p python3 
Python :: filter nulla values only pandas 
Python :: print(np.round(df.isnull().sum() / len(df), 2)) 
Python :: python get base directory 
Python :: python push into array if not exists 
Python :: pandas to_csv delimiter 
Python :: gluten 
Python :: prekladac 
Python :: pandas rename columns by position 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =