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
Post a Comment