I'm new to django and find my django package always unresolved, but the project runs successfully, the interpreter setting is right, the pip list shows the django package, I clip some pics here, can someone tell me how to remove these warnings? Are there any pronlems in environment variables or version conflicts?
Warnings: enter image description here
Interpreter setting: enter image description here
project structure setting: enter image description here
run/debug configuration: enter image description here
CodePudding user response:
have you tried to run it with virtual environment ? use the poetry to avoid the conflicts with other django projects in your local machine, i am not sure but the maybe it conflicts with other django project with different version poetry provides the version control file, this link will help you to configure poetry with django project poetry Cheatsheet
hope it helps
CodePudding user response:
"Django is not importable in this environment" is probably the decisive error message. The causes for it seem to vary, but many are treated here: Pycharm error Django is not importable in this environment