开发者

How to debug Django variables, specifically the session variable?

开发者 https://www.devze.com 2023-03-29 06:36 出处:网络
I have tried using pprint to debug the session variable but it gives me a memory object like <8hfw89h> or something. How can I see the keys inside the session variable or furthermore any other vari

I have tried using pprint to debug the session variable but it gives me a memory object like <8hfw89h> or something. How can I see the keys inside the session variable or furthermore any other variable in Django?

{{ debug }} does not give me what I ne开发者_StackOverflowed either.

Thanks


I would reccomend the django-debug-tool bar, It also provides alot more other information on load times and such too.

Goodluck.

0

精彩评论

暂无评论...
验证码 换一张
取 消