python - Getting stuff out from QueryDict -


right have querydict post request, i'm not sure how extract values given param can change.

example: querydictex = {"field1": "field2"}

the problem user can input field1 based on want, , i'm not sure how retrieve name of first part. if it's static, "user" or "password" can querydictex.get("user") , done it, since can change base on user, i'm stuck on do.

querydict inheriting python dict should able iterate dict:

for key, value in request.post.iteritems():     print key, value 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -