Nick Heiner
Nick Heiner

Reputation: 122530

PyDev and Django: Autocomplete not detecting Django?

I'm using PyDev with Django. The autocomplete works nicely in the shell - I start typing, and it suggests completions. However, this doesn't work in the main code editor window. How can I fix this?

I'm using:

Eclipse build #20100218-1602

PyDev 1.5.6

Eclipse IDE for Java Devs 1.2.2

Upvotes: 4

Views: 3278

Answers (2)

talkingtoaj
talkingtoaj

Reputation: 888

Navigate to Window->Preferences->PyDev->Interpreters–>Python Interpreter

From Libraries (System PYTHONPATH),

  1. make sure ..lib/site-packages is listed.
  2. Remove any mention of lib/site-packages/Django

Upvotes: 0

tdedecko
tdedecko

Reputation: 1482

You might need to set the editor code completion settings. They are under:

Window->Preferences->PyDev->Editor->Code Completion

You might also need to add the Django install or your Django project to your path. You can set this under:

Window->Preferences->PyDev->Interpreter - Python

Hope this helps.

Upvotes: 8

Related Questions