changes
This commit is contained in:
@@ -21,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = 'django-insecure-_u202k$8qq2p*cr_eo(7k!0ngr5^n)27@85+5oy8&41(u6&j54'
|
SECRET_KEY = 'django-insecure-_u202k$8qq2p*cr_eo(7k!0ngr5^n)27@85+5oy8&41(u6&j54'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ ASGI_APPLICATION = 'api.asgi.application'
|
|||||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
|
||||||
#prod:5.223.52.193 dev:5.223.42.146
|
#prod:5.223.52.193 dev:5.223.42.146
|
||||||
|
|
||||||
MODE = 'dev'
|
MODE = 'prod'
|
||||||
DBHOST = '138.199.203.34' if MODE == 'prod' else '138.199.203.34'
|
DBHOST = '138.199.203.34' if MODE == 'prod' else '138.199.203.34'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ def send_email(request):
|
|||||||
sender = request.data.get('sender')
|
sender = request.data.get('sender')
|
||||||
|
|
||||||
# send email
|
# send email
|
||||||
result = send_via_zeptomail(receiver, subject, content, sender)
|
result = send_one_by_one(receiver, subject, content, sender)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
return Response({'message': 'Send success'}, status=200)
|
return Response({'message': 'Send success'}, status=200)
|
||||||
|
|||||||
Reference in New Issue
Block a user