-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flask Server Ausgesetzt, làuft auf Port 5001
- Loading branch information
1 parent
b835342
commit b227ee0
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from flask import Flask, render_template, request, redirect, session, flash, jsonify, url_for | ||
from flask_session import Session # Import für die Session-Erweiterung | ||
|
||
app = Flask(__name__) | ||
|
||
# Konfigurationen für automatisches Template-Reload, Sessions und Datenbank | ||
app.config["TEMPLATES_AUTO_RELOAD"] = True | ||
# festgelegt, dass Session nicht dauerhaft ist | ||
app.config["SESSION_PERMANENT"] = False | ||
# Sitzungsinformationen auf dem Dateisystem gespeichert | ||
app.config["SESSION_TYPE"] = "filesystem" | ||
# Geheimer Schlüssel für die Session-Sicherheit (notwendig für die Session-Verwaltung) | ||
Session(app) # Initialisiert die Session mit der App | ||
|
||
@app.route('/') | ||
def home(): | ||
return "Legal Prompt" | ||
|
||
if __name__ == "__main__": | ||
app.run(debug=True, port=5001) # Startet den Server auf Port 5001 mit aktiviertem Debug-Modus |
Binary file not shown.