import os from flask import Flask app = Flask(__name__) # Get the secret key from the environment variable, or use a default for development app.secret_key = os.getenv('FLASK_SECRET_KEY', os.urandom(24)) # Print the secret key for debugging purposes (not recommended in production) print("Secret Key:", app.secret_key)