Django Eclipse: How to setup settings module in eclipse (trying to use django shell)?
Django Eclipse: How to setup settings module in eclipse (trying to use django shell)?
So I want to use python shell inside eclipse.
When I click django shell environement in eclipse I get the following prompt: https://imgur.com/a/kPGrdgl
Now I assume it wants the path to the settings.py file? I so, based on my folder structure (please check the image above!) the path should be rango.settings.py right?
rango.settings.py
I've tried that but I get the ModuleNotFoundError: No module named
'app1'
ModuleNotFoundError: No module named
'app1'
What am I doing wrong? please help!
.py
1 Answer
1
You need to set the PYTHONPATH variable. For my liking (even though I'm a hardcore eclipse fan), I prefer PyCharm in handling PYTHONPATH.
Make sure your project is set-up correctly (link here)

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
The dot notation of a Python package or module does not contain the file name suffix (
.pyin this case).– Klaus D.
Jun 30 at 6:38