Which command is used to create a new app in Django?

Which command is used to create a new app in Django?

a) python manage.py runserver
b) python manage.py startapp
c) python manage.py migrate
d) django-admin startproject

Answer:

b) python manage.py startapp

Explanation:

The python manage.py startapp command is used to create a new app within a Django project, generating the necessary files and directories.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top