But, when I initialling go to '/resultsdb/search_form/' and the request is not 
a get but I a WSGIRequest how to test the content? Because in my view the only 
redirect after a request.GET occurs during an if conditional of when a certain 
button is pressed

Jeff
-------------- Original message -------------- 
From: "Karen Tracey" <[EMAIL PROTECTED]> 
On Thu, Oct 30, 2008 at 10:25 AM, jeffhg58 <[EMAIL PROTECTED]> wrote:


I am currently the django test client and I have run across a
stumbling block.

When I do a get command for my main screen which is get('/resultsdb/
search_form/'), the status code
returns a 302 with no content.
But, if a do a get on say ('/login/') or a subsequent window besides
the main window such as ('/resultsdb/newresults/') and get a status
code of 200 with the content of the window.

Any help would be greatly appreciated. I am stumped on this.



Well a 302 is a redirect, so it won't have content.  response['Location'] will 
tell you where it is redirecting to, which might give you a hint.


Karen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to