File size: 332 Bytes
07629a7
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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)