edit script to use environment variable for user and password
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,8 +4,8 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
local_settings.py
|
local_settings.py
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
venv
|
|
||||||
.vscode
|
.vscode
|
||||||
/media
|
/media
|
||||||
settings.py
|
settings.py
|
||||||
.env
|
.env
|
||||||
|
env
|
||||||
@@ -9,8 +9,10 @@ from dotenv import load_dotenv
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
msg = EmailMessage()
|
msg = EmailMessage()
|
||||||
|
# Subject should be dinamicly to add subject from olx
|
||||||
msg['Subject'] = 'KIVI-CARS'
|
msg['Subject'] = 'KIVI-CARS'
|
||||||
msg['From'] = 'kivi-cars.ba'
|
msg['From'] = 'kivi-cars.ba'
|
||||||
|
# Below is generated email adress using https://temp-mail.org/
|
||||||
msg['To'] = 'harogi8832@leafzie.com'
|
msg['To'] = 'harogi8832@leafzie.com'
|
||||||
msg_body = """Pozdrav,
|
msg_body = """Pozdrav,
|
||||||
Ovo je automatski generisana poruka u svrhu testiranja naseg servisa
|
Ovo je automatski generisana poruka u svrhu testiranja naseg servisa
|
||||||
|
|||||||
Reference in New Issue
Block a user