Be the first user to complete this post
|
Add to List |
491. Unresolved references error - Django in PyCharm and IntelliJ
This is a known problem for many. If you are seeing "Unresolved references error" for all the imports of Django as in the image below (either in PyCharm or in IntelliJ) then the Django package is missing.
Add Django Package in Intellij
- Right click on your project and click on the open module setting.
- Select the SDK from the left menu and select packages on the right and then click + (install) sign at the bottom.
- Type and select Django in Available Packages and click install.
Add Django Package in PyCharm
- Click on the PyCharm at the top and select preferences. (This is in mac, i believe something similar will be available in windows as well)
- Select your project on the left side menu and select Python Interpreter. Click on the setting (gauge) sign on the right side (next to the place where you select Python Interpreter).
- Small drop down will appear with "Add" and "Show All", Click on Add.
- Type and select Django in Available Packages.
Now Unresolved references error has disappeared.