Wednesday, December 28, 2011

raw query placeholder "%(key)s" supported in django?


hi.

in psycopg module, when composing a query, you can use "%(key)s" in your query instead of "%s", and pass a dictionary instead of a list for actual parameter.
django docs mention the "%s" syntax for raw queries. i was just wondering if the other syntax is supported or not, because it can be handy sometimes.

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

No comments:

Post a Comment