Hello
I am doing a project and want to add a voice search button in my website.
Means intead of typing i can search using my voice. Does anyone has any
idea about how can i do this ?. I am thinking of pyttsx3. Is it possible to
do with it?
Please help
Thank you
--
You received this message
Works like a charm!
Thanks a lot!
-Kristoffer
--~--~-~--~~~---~--~~
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
Hi,
It's not a "copy/paste" code. As I told you, it comes from the admin
view. The self correspond to a more complex construct in the admin.
You can find the full code here:
\django\contrib\admin\views\main.py line 712
But it's not easy to understand at first sight.
But I think the problem is
Thank you, I have upgraded to 0.9.5 now.
Still can't get it to work, though. What does "self" refer to in
"other_qs = QuerySet(self.model)" ?
I changed it to Document, my class that represents an article:
def search(request):
query = request.POST['query']
or_query=Q()
On 27 Jun 2006, at 08:53, Kristoffer wrote:
> I can import Q with "from django.core.meta import Q", but I can't find
> QuerySet. Did it exist in version 0.91?
No. QuerySet is part of the vastly superior magic-removal ORM, which
was introduced in Django 0.9.5. There are instructions on
Thank you very much for your help!
This seems to be exactly what I would like to do!
However, your source seems to be for another version of Django than I
run (I have version 0.91)
I can import Q with "from django.core.meta import Q", but I can't find
QuerySet. Did it exist in version 0.91?
Hi,
There's probably a better way, but I would do like the code they use
in the admin, something like:
# 'query' is the query you want to run. It can be, for instance, "WLAN john"
or_query=Q()
search_fields = ['articles','author'] # and whatever field of the
articles you want to search
if query:
I have a simple Django application that displays articles.
Now, I would like to let my users search the articles for key words,
and I found this topic from this group:
http://groups.google.com/group/django-users/browse_thread/thread/e5e82d81b0b85aa7/b06b72997a6a1e0c
Is this still the way to go
8 matches
Mail list logo