This is the view in question:
def index(request):
if request.user.is_authenticated():
HttpResponseRedirect('/dashboard')
else:
return render(request, 'index.html')
And when I get to the index page, I get this:
ValueError at /
The view foobar.views.index didn't return an HttpResponse object. It returned None instead.
What could be the problem here?