2016-02-10 72 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