Each app that we write in Django consists of a Python package, and we can use Django to automatically generate the basic app directory structure. One Django project can include many apps and configurations for a particular website, and an app can be included inside multiple projects.
Let's start by creating our own ATM app with the help of the following command:
(venv) [root@ip-172-31-95-213 django_app]# cd atmproject
(venv) [root@ip-172-31-95-213 atmproject]# python3.7 manage.py startapp atmapp
The following is the structure of an app:
(venv) [root@ip-172-31-95-213 atmproject]# tree atmapp
atmapp
├── admin.py
├── apps.py
├── __init__.py
├── migrations
│ └── __init__.py
├── models.py
├── tests.py
└── views.py
In the console, the preceding structure will appear...