Tree structure of Django project

It is the organized file structure of project, it makes easy to go any file easily. Here we learn file structure step by step to understand it clearly and then create an application in next tutorial page.

Project(HelloWorldApp) files:

_init__.py: is an empty file that instructs Python to treat this directory as a Python package.

settings.py: contains all the website settings. This is where we register any applications we create, the location of our static files, database configuration details, etc.  

urls.py: defines the site url-to-view mappings. While this could contain all the url mapping code, it is more common to delegate some of the mapping to particular applications, as you'll see later.

wsgi.py: is used to help your Django application communicate with the web server. You can treat this as boilerplate.

App(helloworld) files: 

               

__init__.py

Admin.py

Setting.py

View.py

Models.py

url.py

Tree structure of project

Powered  by Codersarts