getting u'string' at the beginning of each item in a list

2011-03-17 Thread cuteangel
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

2011-02-23 Thread cuteangel
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

Problem in returning the value.

2011-02-23 Thread cuteangel
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

Re: django and mysql connection problem

2011-01-31 Thread cuteangel
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,

django and mysql connection problem

2011-01-31 Thread cuteangel
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