Equivalent of PHP "echo something; exit();" with Python/Django?
- by Infinity
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