Django raw query cursor error

The following code gives me an error

from django.db import connection
cursor = connection.cursor()

Error message:

Undefined variable from import: cursor

I have Django 1.2.5 installed. How to solve this problem?

thank

+3
source share
1 answer

It was just a PyDev newsletter, as Daniel noted. I can run the script without changing anything.

0
source

All Articles