python - Erroneous PyDev Errors with Django 1.8 -
i'm working eclipse + pydev. switched machine django 1.6 1.8. under django 1.6, project had no errors. now, under django 1.8, references properties of .objects
on database model, such
databasemodel.objects.filter(...)
give me error
undefined variable import: filter
these errors don't occur in models.py; if import databasemodel different module , call method of it's .objects
property different module.
how eclipse stop reporting these errors?
more details:
eclipse version: kepler service release 1
pydev version: 3.9.2
i experienced similar problem when upgrading django 1.7 (which why kept around version of django 1.6 in development environment).
humm, let's django structure pretty difficult thing understand, so, pydev static analyzer has hard-coded tricks dealing django... changed on 1.8, so, static analysis not working on anymore (reference: https://github.com/fabioz/pydev/blob/development/plugins/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modulesmanager.java -- method: decoratemodule)
please report issue @ https://sw-brainwy.rhcloud.com/tracker/pydev/