Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from flask.sessions import SecureCookieSessionInterface # Import the class
|
|
4 |
from salesforce import get_salesforce_connection
|
5 |
from datetime import timedelta
|
6 |
import os
|
|
|
7 |
|
8 |
|
9 |
# Initialize Flask app and Salesforce connection
|
@@ -19,7 +20,6 @@ print("Salesforce connection established.")
|
|
19 |
app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
|
20 |
|
21 |
# Register Blueprints after Flask app is created
|
22 |
-
from Menu_page import menu_page # Now you can import the Blueprint after app is initialized
|
23 |
app.register_blueprint(menu_page)
|
24 |
|
25 |
# Configure the session type
|
|
|
4 |
from salesforce import get_salesforce_connection
|
5 |
from datetime import timedelta
|
6 |
import os
|
7 |
+
from Menu_page import menu_page # Now you can import the Blueprint after app is initialized
|
8 |
|
9 |
|
10 |
# Initialize Flask app and Salesforce connection
|
|
|
20 |
app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
|
21 |
|
22 |
# Register Blueprints after Flask app is created
|
|
|
23 |
app.register_blueprint(menu_page)
|
24 |
|
25 |
# Configure the session type
|