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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -