Unverified Commit d7061007 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Crash test dummy

parent 3964929a
...@@ -98,5 +98,7 @@ urlpatterns = [ ...@@ -98,5 +98,7 @@ urlpatterns = [
url(r'^tinymce/', include('tinymce.urls')), url(r'^tinymce/', include('tinymce.urls')),
# Javascript translation catalog # Javascript translation catalog
url(r'jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), url(r'jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'),
url(r'crash/$', views.crash),
] + static(settings.MEDIA_URL + 'public/', ] + static(settings.MEDIA_URL + 'public/',
document_root=os.path.join(settings.MEDIA_ROOT, 'public')) document_root=os.path.join(settings.MEDIA_ROOT, 'public'))
from django.conf import settings from django.conf import settings
from django.contrib.auth import authenticate from django.contrib.auth import authenticate
from django.contrib.admin.views.decorators import staff_member_required
from django.http import (HttpResponseBadRequest, from django.http import (HttpResponseBadRequest,
HttpResponseForbidden, JsonResponse) HttpResponseForbidden, JsonResponse)
from django.utils import timezone from django.utils import timezone
...@@ -43,3 +44,8 @@ def wiki_login(request): ...@@ -43,3 +44,8 @@ def wiki_login(request):
return JsonResponse({'status': 'error', return JsonResponse({'status': 'error',
'msg': 'Authentication Failed'}, 'msg': 'Authentication Failed'},
status_code=403) status_code=403)
def crash(request):
raise Exception("Test exception")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment