Django Application Directory Structure

Educations 0 Thu 18 Aug 2022
Django Application …

Application Directory Structure

  • Go to Project Folder
  • Run Command python manage.py startapp myapp
myapp
migrations
__init__.py
  __init__.py
  admin.py
  apps.py
  models.py
  tests.py
  views.py

Application Directory Structure

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

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

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.

apps.py – This file is used to config app.

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.

tests.py – This is files is used to create tests.

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

--Posted By : santosh


Back to Post
Comments....

All Comments...

No comments yet !!!!

Bestsaller

Online Store


Populer Store
Electronics Store
Services Store
Other Services