Sunday, December 27, 2009

Re: Is it ok to use double quotes instead of single quotes in Field.choices?

Dear ,
Just check how you are creating that string.(1,'i'm looking for...')
you are giving it like 'i'm .
Effectively your string will be only 'I' and remaining part will be
taken as a undefined variable or something like that. if you want to
make it correct you have to add escape sequence like 'i\'m looking
for ..'
this will work.basically you have to add an escape character if you
want to add ' or " inside a string..

--

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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate