On za, 2010-03-27 at 04:13 -0700, serek wrote:
> Hi
> 
> When I run manage.py shell and use this code:
> 
> >>> from xxxx.page.models import *
> >>> p = Page()
> >>> dir(p)
> 
> it is work well, but when in views.py I use the same then is no
> output? Why? I need something similat to php var_dump or pront_r (to
> source page or console). What I do wrong?

You forget "print".

def view(...):
   p = Page()
   print dir(p)

The python interactive shell automatically prints the result of a
statement if it is not None and not assigned to a variable. Python does
not do that normally. 
-- 
Dennis K.

The universe tends towards maximum irony. Don't push it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to