Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,16 +6,12 @@ from simple_salesforce import Salesforce
|
|
6 |
import os
|
7 |
import uuid
|
8 |
import tempfile
|
9 |
-
from dotenv import load_dotenv
|
10 |
-
|
11 |
-
# Load environment variables from .env file
|
12 |
-
load_dotenv()
|
13 |
|
14 |
# Salesforce configuration
|
15 |
-
SF_USERNAME = os.getenv('SF_USERNAME', '
|
16 |
-
SF_PASSWORD = os.getenv('SF_PASSWORD', '
|
17 |
-
SF_SECURITY_TOKEN = os.getenv('SF_SECURITY_TOKEN', '
|
18 |
-
SF_DOMAIN =
|
19 |
|
20 |
# Initialize Salesforce connection
|
21 |
sf = Salesforce(
|
|
|
6 |
import os
|
7 |
import uuid
|
8 |
import tempfile
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Salesforce configuration
|
11 |
+
SF_USERNAME = os.getenv('SF_USERNAME', 'your_salesforce_username')
|
12 |
+
SF_PASSWORD = os.getenv('SF_PASSWORD', 'your_salesforce_password')
|
13 |
+
SF_SECURITY_TOKEN = os.getenv('SF_SECURITY_TOKEN', 'your_salesforce_security_token')
|
14 |
+
SF_DOMAIN = 'login' # Use 'test' for sandbox or 'login' for production
|
15 |
|
16 |
# Initialize Salesforce connection
|
17 |
sf = Salesforce(
|