Thanks for the response Bruno.

Your comment made me think I forgot to mention that the issue only
happens in production when django is behind nginx.
I'm not sure how to run pdb in this context.
Any ideas where else to look?
-mehdi

On Jun 24, 11:37 am, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On Jun 24, 7:19 pm, mehdi ait oufkir <me...@punchtab.com> wrote:
>
>
>
> >     def cleanup_request(request):
> >         """
> >         Removes `oauth_` keys from various dicts on the
> >         request object, and returns the sanitized version.
> >         """
> >         for method_type in ('GET', 'PUT', 'POST', 'DELETE'):
>
>               if method_type == "POST":
>                    import pdb; pdb.set_trace()
>
> >             block = getattr(request, method_type, { })
>
> Then you start the dev server, send a POST request with an empty body,
> and step thru the code until you find out  what's happening.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to