MariusB wrote:
> In the view take an URL from the query:
>       query = request.POST.get('q', '')

> How do I turn query from a string into a list with one element
> (['<query_value>']) in the view?

I'm not sure I understand what you mean, but if you want to transform your 
"query" variable into a 
single-element list, you can use : query = [query] , or you can split your 
"query" using the 
"split()" method.

  - Jonathan


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