In PyCharm directories could be marked as:
I wonder what is the difference for sources and resources.
I can't find any informations about my question in documentation. Is there any definition?
To access project structure, open Settings/Preferences by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or PyCharm | Preferences for macOS, then expand the Project node, and select Project Structure.
A content root is a folder that contains the files that make up your project. Source roots (or source folders; shown as ). These roots contain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving imports.
Structure tool window. View | Tool Windows | Structure or Alt+7. This tool window displays the structure of a file currently opened in the editor and having the focus, or selected in the Project tool window. For diagrams, this tool window shows the diagram preview.
Sources are "source" (.py
) files. Resources are assets like .css
, .png
, .txt
and other files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With