Skip to content

Commit

Permalink
Flask Server Ausgesetzt, làuft auf Port 5001
Browse files Browse the repository at this point in the history
  • Loading branch information
Iza-collab committed Mar 24, 2024
1 parent b835342 commit b227ee0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app.py
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 added flask_session/2029240f6d1128be89ddc32729463129
Binary file not shown.

0 comments on commit b227ee0

Please sign in to comment.