2016-02-10 71 views
1

我目前正在使用Django Project並在我安裝的應用程序上安裝djangorestframework。我pip freeze文件,你可以看到如下:Autocompletion不能在虛擬環境中工作pycharm

Django==1.9.2 
django-filter==0.12.0 
djangorestframework==3.3.2 
djangorestframework-jwt==1.7.2 
eventbrite==3.3.3 
Markdown==2.6.5 
Pygments==2.1 
PyJWT==1.4.0 
requests==2.9.1 
wheel==0.24.0 

我的項目python interpreter也指向正確的目錄

enter image description here

但問題是auto completion功能不工作djangorestframework,你可以看到下面。 Pycharm無法識別我的進口。

enter image description here

我也曾在Pycharm啓用Django Support

任何人都可以建議我該怎麼做才能在這裏啓用自動完成功能?謝謝

回答

1

好了我的問題解決了

1 - Go to `file --> Invalidate Caches/Restart` 
2- Wait for Pycharm to build new indexes 
3- Then try to import your python modules. 

它爲我:)

enter image description here