mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
Fixed hardcoded domain
This commit is contained in:
@@ -136,6 +136,7 @@ EMAIL_HOST_PASSWORD = ''
|
|||||||
EMAIL_PORT = ''
|
EMAIL_PORT = ''
|
||||||
EMAIL_USE_TLS = True
|
EMAIL_USE_TLS = True
|
||||||
DEFAULT_FROM_EMAIL = 'noreply@domain'
|
DEFAULT_FROM_EMAIL = 'noreply@domain'
|
||||||
|
YOUR_DOMAIN = 'yoursite.com'
|
||||||
|
|
||||||
AUTH_USER_MODEL = 'closedverse_main.User'
|
AUTH_USER_MODEL = 'closedverse_main.User'
|
||||||
CSRF_FAILURE_VIEW = 'closedverse_main.views.csrf_fail'
|
CSRF_FAILURE_VIEW = 'closedverse_main.views.csrf_fail'
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ class User(models.Model):
|
|||||||
subject='Reset password',
|
subject='Reset password',
|
||||||
html_message=htmlmsg,
|
html_message=htmlmsg,
|
||||||
message=htmlmsg,
|
message=htmlmsg,
|
||||||
from_email="noreply@cedar.doctor",
|
from_email="noreply@" + settings.YOUR_DOMAIN,
|
||||||
recipient_list=[self.email],
|
recipient_list=[self.email],
|
||||||
fail_silently=False)
|
fail_silently=False)
|
||||||
def find_related(self):
|
def find_related(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user