6๐
โ
You can use Django Debug Toolbar which allows you to view a lot of debugging information including request and session.
From its documentation:
Currently, the following panels have been written and are working:
- Django version
- Request timer
- A list of settings in settings.py
- Common HTTP headers
- GET/POST/cookie/session variable display
- Templates and context used, and their template paths
- SQL queries including time to execute and links to EXPLAIN each query
- List of signals, their args and receivers
- Logging output via Pythonโs built-in logging, or via the logbook module
๐คalmalki
- Where to instantiate boto s3 client so it is reused during a request?
- "Upload" a file from django shell
7๐
from django.utils.html import escape
def index(request):
return HttpResponse(escape(repr(request)))
๐คmderk
- How should template names be set dynamically using class based views?
- Testing a session variable
- How to serialize an 'object list' in Django REST Framework
- How to use normal Filter together with SearchFilter on Django Rest Framework?
- Django Model Method or Calculation as Field in Database
Source:stackexchange.com