If you're talking about string formatting operations, Django is just Python, so %(key)s will work.
Cheers, AT On Wed, Dec 28, 2011 at 9:01 AM, ali alizadeh <[email protected]>wrote: > > 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 [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. > -- 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.

