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?

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))   

because returns render , do not call it

  submit back (request, 'auth_lifecycle / user_profile.html', context_instance = RequestContext (request))  < Change the last line to / pre>  

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -