Automated testing: Difference between revisions

From OpenHatch wiki
Content added Content deleted
(NKNxJRuCxGxqaqHZKJe)
(RJMUXeymOBLjAsbpY)
Line 1: Line 1:
Still i am getting the same error.. here is my login view [I am using pyohtn2.6]@anonymous_requireddef login request, form_class=None, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME :"Displays the login form and handles the login action."redirect_to = request.REQUEST.get redirect_field_name, '' if request.method == "POST": form = AuthenticationForm data=request.POST if form.is_valid : if not redirect_to or '//' in redirect_to or ' ' in redirect_to: redirect_to = settings.LOGIN_REDIRECT_URL from django.contrib.auth.views import login login request, form.get_user if request.session.test_cookie_worked : request.session.delete_test_cookie return HttpResponseRedirect reverse 'goto_dashboard' else: form = AuthenticationForm request #captchform = form_class() request.session.set_test_cookie if Site._meta.installed: current_site = Site.objects.get_current else: current_site = RequestSite request return render_to_response template_name, 'form': form, redirect_field_name: redirect_to, 'site': current_site, 'site_name': current_site.name, , context_instance=RequestContext request login = never_cache login
Is this the only asbestos in the house? If so, I wdluon't be overly concerned with it. You've got 2 options: 1. leave it alone. As long as asbestos isn't disturbed, it isn't harmful. When it gets poked or ripped or damaged, the particles get into the air and then cause harm. Option 2: get an asbestos abatement company to come out and remove the asbestos. (probably the better idea) It may be $500-$1000 (just guessing), but you'll sleep better. In the long run with homeownership, especially with a 100 year old house, that's probably a drop in the bucket and wdluon't be a deal-breaker for me. You could probably call and get some ballpark cost estimates before you even buy the house. Good luck!

Revision as of 13:21, 5 May 2012

Still i am getting the same error.. here is my login view [I am using pyohtn2.6]@anonymous_requireddef login request, form_class=None, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME :"Displays the login form and handles the login action."redirect_to = request.REQUEST.get redirect_field_name, if request.method == "POST": form = AuthenticationForm data=request.POST if form.is_valid  : if not redirect_to or '//' in redirect_to or ' ' in redirect_to: redirect_to = settings.LOGIN_REDIRECT_URL from django.contrib.auth.views import login login request, form.get_user if request.session.test_cookie_worked  : request.session.delete_test_cookie return HttpResponseRedirect reverse 'goto_dashboard' else: form = AuthenticationForm request #captchform = form_class() request.session.set_test_cookie if Site._meta.installed: current_site = Site.objects.get_current else: current_site = RequestSite request return render_to_response template_name, 'form': form, redirect_field_name: redirect_to, 'site': current_site, 'site_name': current_site.name, , context_instance=RequestContext request login = never_cache login