ob-vaults/Super_Vault/200_programming/python/django/apps.md
2024-09-12 17:54:01 +03:30

704 B

status: #doc Tags: #python/django links: Date: 2024-06-22


apps

make my_app

each app is for distinct functionality or page that we can use in different project , there is not any hard rule but its used for more separation of concerns

  • insert command
python manage.py startapp my_app

my_app is optional name you can use what ever you want as you enter this command it make folder my_app with python files you need

install my_app

  • for this go to config or your project folder,inside of list with name of "INSTALLED_APPS" add bellow to end of the list
'my_app' ,

note that other entry inside the list are preconfigured django apps


References