Hi All,

Can anybody tell me if there's a possibility to see output of the
regular print command when used in a view? fo instance to a log file
with a "tail -f"

The code:

def detail(request, id):
    p = get_object_or_404(Customer, pk=customer_id)
    product_list = p.product_set.all()
    print product_list

It's not going to stay there, but with commands like dir() and help()
I can get a lot of usefull info on the objects I'm working
(playing .. ;-) with.

Thanx a lot!

Regards,

Gerard.

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to