[Django]-Python Manage.Py

6πŸ‘

βœ…

One project may have many application in it & you can create app using below code.
django-admin startapp my_new_app.
Also you can reuse same app in multiple projects.

For Hrm you should create new app instead of new project.

Example : One ERP projects may have many apps like hrm, sales, purchase, inventory etc.. & we can reuse same apps into another ERP projects also if needed.

Hope above clarifications works for you.

πŸ‘€Moon

1πŸ‘

Project and apps and different see this

django-admin startproject mydjangoproject creates the project for you,

What you want to do is to create an app hrms and caculator can be apps living under umbrella of one project that is mydjangoproject

You should create apps here by django-admin startapp hrms and django-admin startapp calculator and add it to settings.py in your project folder

INSTALLED_APPS = [ #otherapps here
                  'hrms',
                  'calculator']

0πŸ‘

Start project and start app are very different commands. With the first one you create a project which will have a base structure to work on. The second command is used to create apps which you could classify as controllers. Each app will live in a folder where you will program the business logic and bind endpoints.

πŸ‘€Rodrigo Loza

0πŸ‘

The app would be a new module in your project, let’s say it would be a management system with human resources, financial modules, etc., so you would create an app for each of them to better organize, but nothing prevents creating everything in one app.Create a project only if it is something different.

πŸ‘€amsousa

Leave a comment