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!





The dot notation of a Python package or module does not contain the file name suffix (.py in this case).
– Klaus D.
Jun 30 at 6:38


.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)



Refer to this picture






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.

Popular posts from this blog

Why are these constructs (using ++) undefined behavior in C?

I'm Still Waiting (Diana Ross song)

Delphi Android file open failure with API 26