code enquest wrote: > in PhP i used to print_r(array) to see what if got in my array that I > want to bring on the screen. Smarty even had a popup screen to show this. > > How can I see in Django what I got in the view? So that working in the > template goes a tat faster? What is the print_r($array) in the template > or Django version? > > Enquest
I have found it very useful to fire up the python debugger from inside the Django development server. Easiest way I've found to do it is to add the following as the first two lines of the view function that you want to debug: import pdb pdb.run_trace() Then, when you attempt to load the view, you will get the (pdb) prompt at your development server, and you can print variables, single step, set breakpoints, etc. - Terry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---