Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oloruntobi Olurombi committed Sep 12, 2024
1 parent 38be32e commit b7a08d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import os
from flask import Flask
from flask import Flask
from flask_wtf.csrf import CSRFProtect
import secrets

app = Flask(__name__)


app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', secrets.token_urlsafe(32))
secret_key = os.getenv('SECRET_KEY')
if secret_key is None:
raise ValueError("No SECRET_KEY set for Flask application. Please set the SECRET_KEY environment variable.")
app.config['SECRET_KEY'] = secret_key

csrf = CSRFProtect(app)

Expand All @@ -15,4 +16,4 @@ def hello():
return "Hello, Welcome to Zip Reg Tech!"

if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
app.run(host="0.0.0.0", port=5000)

0 comments on commit b7a08d6

Please sign in to comment.