diff options
Diffstat (limited to 'website/views.py')
-rw-r--r-- | website/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/website/views.py b/website/views.py index 3c71941..e0f37e8 100644 --- a/website/views.py +++ b/website/views.py @@ -6,6 +6,7 @@ from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.db.models import Q +from django.core.mail import send_mail from website.models import Question, Reply, Notification, TutorialDetails, TutorialResources from website.forms import NewQuestionForm, ReplyQuesitionForm @@ -330,3 +331,7 @@ def ajax_time_search(request): } return render(request, 'website/templates/ajax-time-search.html', context) + +def test(request): + send_mail('sub', 'message', 'hello', ['rush2jrp@gmail.com'], fail_silently=True) + return HttpResponse("done") |