plural name django
Open your terminal or command prompt.
Navigate to the directory where your Django project is located.
Run the command
python manage.py startapp <app_name>
to create a new app within your Django project.This will create a new directory with the specified app name, containing the necessary files and folders for your Django app.
Next, you'll need to register the new app by adding it to the
INSTALLED_APPS
list in thesettings.py
file of your Django project.You can then begin defining models, views, URLs, and templates for your new app within the created directory.
Remember to run
python manage.py makemigrations
andpython manage.py migrate
after making changes to your models in order to apply those changes to your database.Finally, don't forget to include the app's URLs in the main
urls.py
file of your Django project, so that the app's views can be accessed through the specified URLs.