Hi everyone,

I have a function Gquery, it works. But I don't know how to make it
work with form in html with django?

def Gquery(query):
    conn=sqlite3.Connection(db)
    c=conn.cursor()
    out_=[]
    query=query.strip().upper()
    sql='select ...'
    out=c.execute(sql)
    out_.extend(out.fetchall())
    return unique(out_)

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

Reply via email to