def search_mov(movie_name):
try:
from django.db import connection, transaction
cursor = connection.cursor()
cursor.execute("select query from Winteract_Wogmainteract
where query like %s",['%'+movie_name+'%'])
row = cursor.fetchall()
how to declare a list in django models.py class
--
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...@googlegro
this is the class from models.py-
class NatPar(models.Model):
@staticmethod
def handle_review(self):
try:
grammar=nltk.parse_cfg("""
S->VP NP
PP->P N
NP->Det N PP
VP->V Det
Det ->'me'|'the'
N->'revie
thnkzit helped...
--
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,
its my first project with django..i already tried the connection with
sqlite.but now m using django's connection with mysql n m getting
following error...
D:\project\wogma>manage.py syncdb
Traceback (most recent call last):
File "D:\project\wogma\manage.py", line 11, in
execute_manager(set
5 matches
Mail list logo