Chapter-11

Application Directory Structure

11.1. Application Directory Structure :-

11.1.1. migrations

This folder contains __init__.py file which means it’s a python package. It also contains all files which are created after running make migration
command .

11.1.2. __init__.py :-

The folder which contains __init__.py file is considered as Python Package.

11.1.3. admin.py :-

This file is used to register sql tables so we could perform CRUD operation from Admin Application. Admin Application is provided by Django to perform CRUD operation.

11.1.3. apps.py :-

This file is used to config app.

11.1.4. models.py :-

This file is used to create our own model class later these classes will be
converted into database table by Django for our application.

11.1.5. tests.py :-

This is files is used to create tests.

11.1.6. views.py :-

This file is used to create view. We write all the business logic related code in this file.

PreviousNext