On 10/4/2010 8:49 AM, ashy wrote:
> Hi All,
> 
> my code is as below:
> li = ['2l','1l']
> str = ",".join(li)
> 
> but print str does not work for me :(
> 
"Does not work" is hardly a sufficient description of your problem, I
suspect. If I tell you my car "does not work", would you be able to tell
me how to fix it?

How are you running Django? If you are running it using

  python manage.py runserver

for testing then print statements *should* cause output to appear in the
standard output stream. If you are running under Apache, however, that
is not the case.

Also note that "str" is not a happy choice of name, since it is also the
name of one of Python's basic types and you may wish to use it as such.
Having a variable called "str" in your code stops you from doing so.

A little more information will allow us to help you better.

regards
 Steve
-- 
DjangoCon US 2010 September 7-9 http://djangocon.us/

-- 
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