Equivalent of PHP "echo something; exit();" with Python/Django?

Posted by Infinity on Stack Overflow See other posts from Stack Overflow or by Infinity
Published on 2010-04-30T20:43:05Z Indexed on 2010/04/30 20:47 UTC
Read the original article Hit count: 125

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about python

Related posts about django