def dashboard(request):
# Ideally people should...
# `HTTP -X POST -d JSON http://hostname/symbolicate/`
# But if they do it directly on the root it should still work,
# for legacy reasons.
if request.method == 'POST' and request.body:
return symbolicate_json(request)
absolute_url = request.build_absolute_uri()
if (
absolute_url.endswith(settings.LOGIN_REDIRECT_URL) and
settings.DEBUG
): # pragma: no cover
return redirect('http://localhost:3000' + settings.LOGIN_REDIRECT_URL)
return frontend_index_html(request)
评论列表
文章目录