Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4390476 By: peter-melvyn
Hi, I'm beginner in Python, Pydev and Django and I encoutered a syntax error in my aplication I don't know hot to solve: 1. I defined class MyModel(nodels.Model): ... 2. Its super class has attribute objects 3. In Python interpreter I can type: >>> from myapp.models import MyModel >>> o = MyModel.objects.get(xxx='....') and it works as I'd expect 4. But if I write the same commands in Pydev 1.3.5 (Eclipse 3.2.2), I get the error 'Undefined variable from import: objects' (objects is underlined) 5. If I define member 'objects' in MyModel again (even if I inherited one from ancestor), the error disappears. Please, could you advise where is a problem and how to solve it? Thanks, Peter ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Pydev-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pydev-users
