python - The view didn't return an HttpResponse object. It returned None instead -
Why do I have the following simple views, which results in this error?
because returns view auth_lifecycle.views.user_profile An HttpResponse object has not returned. No one returned it instead.
"" "Renderer user authentication - web pages for life cycle project." Import from django.template import requestContext from "Django.shortcuts" import django.contrib.auth import certified, for logged in user_profile (request): "Info" shows information unique to the logged in user "" " User = Certified (Username = 'superuserusername', password = 'sueruserpassword') Submit (request, user) login (request, 'auth_lifecycle / user_profile.html', context_instance = RequestContext (request))
submit back (request, 'auth_lifecycle / user_profile.html', context_instance = RequestContext (request)) < Change the last line to / pre>
Comments
Post a Comment