django - Issues in python executing cursor -


hello doing web app in django using visual studio 2013 ide, team foundation code management , postgres database, have install requirement need in python 2.7 64bits...

i have code, reason don't run in for, correct because try query in postgres , shows me data , happend me everytime new function in postgres magic randomly start working , don't know reason of issue... great if has experience issue tell me why happens

call_proccess_students="select * process_monitoreo_doc_det(19,"+paramdep+","+parammun+","+paramesc+",'"+paramturn+"','"+paramdate+"')"     cursor.execute("begin") cursor.execute(call_proccess_students) row in cursor.fetchall():     matches_students.append(dict(label=row[0],rulesetvalue=row[1])) ausen_students = dict(students=matches_students) cursor.execute("commit") cursor.close() results.update(ausen_students)  return build_json_response(results) 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -