summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
Diffstat (limited to 'website')
-rw-r--r--website/urls.py2
-rw-r--r--website/views.py5
2 files changed, 7 insertions, 0 deletions
diff --git a/website/urls.py b/website/urls.py
index bdad667..8585610 100644
--- a/website/urls.py
+++ b/website/urls.py
@@ -24,4 +24,6 @@ urlpatterns = patterns('',
url(r'^ajax-notification-remove/$', 'website.views.ajax_notification_remove', name='ajax_notification_remove'),
url(r'^ajax-keyword-search/$', 'website.views.ajax_keyword_search', name='ajax_keyword_search'),
url(r'^ajax-time-search/$', 'website.views.ajax_time_search', name='ajax_time_search'),
+
+ url(r'^test/$', 'website.views.test', name='test'),
)
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")