diff options
author | hardythe1 | 2014-06-17 13:02:58 +0530 |
---|---|---|
committer | hardythe1 | 2014-06-17 13:02:58 +0530 |
commit | 54108e67c18e87e34cd5adb831958c7b622be763 (patch) | |
tree | ddb7e113cb8c6d7167a43d5639b7878e23bc8e62 | |
parent | 810be42c862956cf4d8bf0bd03b3e8f172c87798 (diff) | |
download | Python-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.tar.gz Python-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.tar.bz2 Python-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.zip |
correctin indentation to match with the file
-rwxr-xr-x | tbc/views.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tbc/views.py b/tbc/views.py index 2e57632..860161a 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -15,16 +15,16 @@ from email.mime.text import MIMEText def email_send(to,subject,msg): - try: - smtpObj = smtplib.SMTP('localhost') - mail_from = "textbook@fosse.in" - message = MIMEText(msg) - message['Subject'] = subject - message['From'] = mail_from - message['to'] = to - smtpObj.sendmail(mail_from, to, message.as_string()) - except SMTPException: - return HttpResponse("Error:unable to send email") + try: + smtpObj = smtplib.SMTP('localhost') + mail_from = "textbook@fosse.in" + message = MIMEText(msg) + message['Subject'] = subject + message['From'] = mail_from + message['to'] = to + smtpObj.sendmail(mail_from, to, message.as_string()) + except SMTPException: + return HttpResponse("Error:unable to send email") def is_reviewer(user): @@ -59,8 +59,8 @@ def AboutPytbc(request): def TemporarilyUnavailable(request): - context = {} - return render_to_response('tbc/unavailable.html', context) + context = {} + return render_to_response('tbc/unavailable.html', context) def Home(request): |