Saturday, February 27, 2016

Re: empty request object

Anyone have any insights on this? Is there anything special I need to
do get the request structure? The way this 1.9 site is now, it doesn't
work at all because the request structure is not getting passed in.

On Fri, Feb 26, 2016 at 10:09 PM, Larry Martell <larry.martell@gmail.com> wrote:
> I just integrated a broken django setup, 1.9, python 2.7, nginx,
> uWSGI, RHEL 6. First thing I observed, the views are not receiving
> anything in the request object, e.g.:
>
> (Pdb) print request
> <WSGIRequest: GET '/'>
>
> Other django systems I've worked with I always get something, e.g.:
>
> (Pdb) print request
> <WSGIRequest
> path:/,
> GET:<QueryDict: {}>,
> POST:<QueryDict: {}>,
> COOKIES:{'csrftoken': 'ieefjZZJjeif993i4nfmnkZZKJ',
> 'messages': '2f148ec0f66f94740a8ff273dd544b554d28c96c$[["__json_message",0,20,"The
> tool \\"U7316\\" was added successfully."],["__json_message",0,20,"The
> tool \\"U7321\\" was added successfully."],["__json_message",0,20,"The
> tool \\"SEMA116\\" was added
> successfully."],["__json_message",0,20,"The tool \\"U7324\\" was added
> successfully."],["__json_message",0,20,"The tool \\"U7324\\" was
> changed successfully."],["__json_message",0,20,"The tool \\"SEMA116\\"
> was changed successfully."],["__json_message",0,20,"The tool
> \\"U7331\\" was added successfully."],["__json_message",0,20,"The tool
> \\"SEMA207\\" was added successfully."]]',
> 'sessionid': 'xg254b6ki5m981n8oko4n88jnqsj0m1y'},
> META:{'Apple_PubSub_Socket_Render': '/tmp/launch-FIgPyl/Render',
> .
> .
> .
>
> I've never seen this before. What could be causing this? Where would I
> being to look?

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY7PdxT%3DF3g21LzEyMQ2qAuAB8EjRV9bi5Q5JAo-T6TUeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment