Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,7 @@ from email.mime.text import MIMEText
|
|
10 |
from menu import menu_blueprint # Make sure this import is correct
|
11 |
from cart import cart_blueprint # Same for other blueprints
|
12 |
from order import order_blueprint # Same for user blueprint
|
13 |
-
|
14 |
-
|
15 |
# Initialize Flask app and Salesforce connection
|
16 |
print("Starting app...")
|
17 |
app = Flask(__name__)
|
@@ -31,7 +30,7 @@ app.config["SESSION_COOKIE_SAMESITE"] = "None" # Cross-site cookies allowed
|
|
31 |
# Initialize the session
|
32 |
Session(app) # Correctly initialize the Session object
|
33 |
print("Session interface configured.")
|
34 |
-
|
35 |
# Ensure secure session handling for environments like Hugging Face
|
36 |
app.session_interface = SecureCookieSessionInterface()
|
37 |
print("Session interface configured.")
|
|
|
10 |
from menu import menu_blueprint # Make sure this import is correct
|
11 |
from cart import cart_blueprint # Same for other blueprints
|
12 |
from order import order_blueprint # Same for user blueprint
|
13 |
+
from user_details import user_details_blueprint
|
|
|
14 |
# Initialize Flask app and Salesforce connection
|
15 |
print("Starting app...")
|
16 |
app = Flask(__name__)
|
|
|
30 |
# Initialize the session
|
31 |
Session(app) # Correctly initialize the Session object
|
32 |
print("Session interface configured.")
|
33 |
+
app.register_blueprint(user_details_blueprint, url_prefix='/user')
|
34 |
# Ensure secure session handling for environments like Hugging Face
|
35 |
app.session_interface = SecureCookieSessionInterface()
|
36 |
print("Session interface configured.")
|