Sometimes the best way to debug something is to print some stuff to the page, and exit()
, how can I do this in a Python/Django site?
e.g. in PHP:
echo $var; exit();
Thanks
Put this in your view function:
from django.http import HttpResponse return HttpResponse(str(var))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With