简体   繁体   中英

How to setup source-folders for Django in intellij python-project? (Python-Plugin)

i have a simple question, but i've not found any solution, neither in the docs nor the web...

How do i properly setup a source-files for Django-Project inside intellij-idea python-plugin? I'm wondering if i should "mark" the folders containing my settings.py and my app-code "blue" so that intellij treats them as source-files?

项目设置屏幕截图

Intellij seems to behave differently in Package-View and in sourcecode-completion when importing things.

Which is the correct setting?

Marking directories as Sources is not required. The effect is that the directory is added to PYTHONPATH .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM