edit script to use environment variable for user and password

This commit is contained in:
msosic97
2022-04-13 13:03:42 +02:00
parent 9dbbbc0c7e
commit 535ba62d16
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@@ -4,8 +4,8 @@
__pycache__/
local_settings.py
db.sqlite3
venv
.vscode
/media
settings.py
.env
env

View File

@@ -9,8 +9,10 @@ from dotenv import load_dotenv
import os
msg = EmailMessage()
# Subject should be dinamicly to add subject from olx
msg['Subject'] = 'KIVI-CARS'
msg['From'] = 'kivi-cars.ba'
# Below is generated email adress using https://temp-mail.org/
msg['To'] = 'harogi8832@leafzie.com'
msg_body = """Pozdrav,
Ovo je automatski generisana poruka u svrhu testiranja naseg servisa