Re: How do I create a script to fill in django admin login form and submit?
I've used Requests in the past.
On Wednesday, August 21, 2013 8:48:16 AM UTC-7, 7equiv...@gmail.com wrote:
-- All I did was load the page in Chrome and then I looked at what was being sent and compared it to what your script was sending. When I added the missing key it worked.
Trial and error. :)
K
On Wednesday, August 21, 2013 8:48:16 AM UTC-7, 7equiv...@gmail.com wrote:
How did you know that that was the name of the form? When I went to django.contrib.auth.forms, it seemed the form name was AuthenticationForm, and when I used view source in a browser it looked like the form was named login-form. How could one know the form was named 'this_is_the_login_form'?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home