How to create all django apps inside a folder?

You can also do it like this

cd apps && django-admin startapp app_name

  1. At first, you need to create a directory Your_App_Name inside the /apps folder.
  2. After that, run the following command to create the new app
python manage.py startapp Your_App_Name ./apps/Your_Apps_Folder_Name/

Then don't forget to add just created app name in the settings.py like below:

INSTALLED_APPS = [
    ...,
    'apps.Your_App_Name',
]

You can specify the path to destination directory after app_label in the startapp command.

python manage.py startapp <app_label> [destination]

In your case you the command is like this:

python manage.py startapp budget ./apps

Then you should add just created app name in settings.py like below:

INSTALLED_APPS = [
    ...,
    'apps.budget',
]

Tags:

Python

Django