Automated testing: Difference between revisions

From OpenHatch wiki
Content added Content deleted
(RJMUXeymOBLjAsbpY)
imported>Blues chick
(Replaced content with "{{Hacking OpenHatch}} This page is now included in our project package, and is automatically generated by sphinx at openhatch.readthedocs.org: [http://openhatch.readthedo...")
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Hacking OpenHatch}}
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

This page is now included in our project package, and is automatically generated by sphinx at openhatch.readthedocs.org: [http://openhatch.readthedocs.org/en/latest/advanced/advanced_testing.html Advanced Testing]

Latest revision as of 15:30, 22 August 2014

This is a page about improving or modifying OpenHatch.

We call that "Hacking OpenHatch," and there is a whole category of pages about that.


This page is now included in our project package, and is automatically generated by sphinx at openhatch.readthedocs.org: Advanced Testing