exception test
authorJan Szejko <janek37@gmail.com>
Fri, 23 Jun 2017 15:30:47 +0000 (17:30 +0200)
committerJan Szejko <janek37@gmail.com>
Fri, 23 Jun 2017 15:30:47 +0000 (17:30 +0200)
src/wolnelektury/urls.py
src/wolnelektury/views.py

index 71bf1b5..2a3f6c6 100644 (file)
@@ -84,3 +84,7 @@ urlpatterns += [
     url(r'^wolontariat/$', RedirectView.as_view(
         url='/info/wlacz-sie-w-prace/', permanent=False)),
 ]
+
+urlpatterns += [
+    url(r'^error-test/$', views.exception_test),
+]
index 7d6ed2b..7573df5 100644 (file)
@@ -184,3 +184,7 @@ def latest_blog_posts(request, feed_url=None, posts_to_show=5):
 @ssi_included(use_lang=False)
 def widget(request):
     return render(request, 'widget.html')
+
+
+def exception_test(request):
+    raise Exception('Exception test')
\ No newline at end of file