• Keine Ergebnisse gefunden

StatischeDateienausliefern(ausVerzeichnis’static’) FestenCodeausliefern Installation Python-Webserver

N/A
N/A
Protected

Academic year: 2022

Aktie "StatischeDateienausliefern(ausVerzeichnis’static’) FestenCodeausliefern Installation Python-Webserver"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Python http://kohnlehome.de/python/webserver.pdf

Python-Webserver

Installation

pip install flask

Festen Code ausliefern

from flask import Flask app = Flask("my hello app")

@app.route("/hello") def hello():

return "Hello World!"

app.run()

Statische Dateien ausliefern (aus Verzeichnis ’static’)

from flask import Flask

app = Flask(__name__, static_folder=’static’, static_url_path=’’)

@app.route("/") def root():

return app.send_static_file(’index.html’) app.run()

Franz Kohnle Seite 1 von 1 20. Dezember 2020

Referenzen

ÄHNLICHE DOKUMENTE

Das g gplot2-Packet beinhaltet auch einen Datensatz zu Filmen, die auf der Webseite der Inter- net Movie Database, IMDB.com , geratet wurden.. Aus

The software verification tools use many techniques for automated proving, in particular:. • Superposition provers (e.g.,

The basic problem of static program analysis: virtually all interesting program properties are

Produces the same results for all possible invocations of M independent of possible callers and parameter values.

Robert Mertens: Zum Ernährungsproblem des Taubwarans, Lanthanotus borneensis • 133 Dietrich Mebs: Untersuchungen über die Wirksamkeit einiger Schlangengift-Seren. gegenüber

In the concrete case of method calls via an expression o.f, first the value of o is computed and placed on the stack, then a LOAD_ATTR instruction is executed to replace it with

Nachricht beim Anklicken: BN_CLICKED Beschriftung

[r]