added env files

This commit is contained in:
CHIEFSOFT\ameye
2025-01-22 14:39:44 -05:00
parent 5b52813ce2
commit 678275dfd6
3 changed files with 20 additions and 5 deletions
+10 -5
View File
@@ -41,11 +41,11 @@ panel_url = os.getenv("PANEL_URL")
mail = Mail(app) # instantiate the mail class
# configuration of mail
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_SERVER']=os.getenv("MAIL_SERVER") # 'smtp.gmail.com'
app.config['MAIL_PORT'] = os.getenv("MAIL_PORT") # 465
#app.config['MAIL_PORT'] = 587
app.config['MAIL_USERNAME'] = 'message@chiefsoft.com'
app.config['MAIL_PASSWORD'] = 'may12002!'
app.config['MAIL_USERNAME'] = os.getenv("MAIL_USERNAME") # 'message@chiefsoft.com'
app.config['MAIL_PASSWORD'] = os.getenv("MAIL_PASSWORD") # 'may12002!'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
mail = Mail(app)
@@ -97,6 +97,9 @@ class User(db.Model):
def __init__(self, email):
self.email = email
initial_product_url = os.getenv("INITIAL_PRODUCT_URL")
print(initial_product_url)
dataUrl = os.getenv("DATABASE_URL")
connection = psycopg2.connect(dataUrl)
#engine = SQLAlchemy.create_engine(dataUrl)
@@ -140,6 +143,8 @@ def hello_world():
@app.route("/test/calendar")
def test_calen():
print("aameye yesy poimt")
print(initial_product_url)
dList = []
sample_range = random.randint(20, 60)
for x in range(sample_range):
@@ -837,7 +842,7 @@ def subscription_start(current_user):
product_found = count = len( product )
if product_found == 0 :
return jsonify({'status': "INVALID",'message': 'Error - Invalid product'}), 403
#INITIAL_PRODUCT_URL
member_id = current_user['user']['member_id']
# internal_url = str(random.randint(10000, 99999)) + "." + product_id + ".mermsemr.com"
internal_url = str(random.randint(10000, 99999)) + ".devprov.mermsemr.com"