There's more than one way to do it (with apologies if you don't like
Perl).  One thing I like to use is IPython which allows you to start a
Python interpreter from any point in your code with the entire
context.
So to test a function, you could add the following lines at the bottom
of
the function body:

    from IPython.Shell import IPShellEmbed
    IPShellEmbed()()

When this point is reached, you will have a complete interactive
Python
interpreter to play around with your variables.

Another way would be to use the pprint module (standard in Python) to
display only the variables you want.

On Jun 18, 1:04 pm, shabda <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am prototyping an app. Since I am just prtotyping I do not want to
> write templates yet. SO is there some way wherein all my variables in
> the view method get out put to the screen, so that I can debug them?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to