Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm - project structure - sources vs resources

In PyCharm directories could be marked as:

  • Sources
  • Resources
  • Templates
  • Excluded

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?

like image 811
Mateusz Jagiełło Avatar asked Sep 11 '15 19:09

Mateusz Jagiełło


People also ask

How do you structure a PyCharm project?

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.

What are source folders PyCharm?

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.

What is structure in PyCharm?

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.


1 Answers

Sources are "source" (.py) files. Resources are assets like .css, .png, .txt and other files

like image 61
user996142 Avatar answered Sep 28 '22 13:09

user996142