Sunday, 15 March 2015

Print HTTP request in Python Django -



Print HTTP request in Python Django -

i want print entire request object comes server. need see of parameters request carries client since don't have clients's code (it's android client). i'm in view.py file, , i'm using function

def index(request): homecoming httpresponse("test params")

to print request object

please suggest code. improve if can print request in browser , not in console.

you can utilize django debug toolbar allows view lot of debugging info including request , session.

from documentation:

currently, next panels have been written , working:

django version request timer a list of settings in settings.py common http headers get/post/cookie/session variable display templates , context used, , template paths sql queries including time execute , links explain each query list of signals, args , receivers logging output via python's built-in logging, or via logbook module

python django

No comments:

Post a Comment