Which command is used to create a new Django project?

Which command is used to create a new Django project?

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

Answer:

b) django-admin startproject

Explanation:

The django-admin startproject command is used to create a new Django project with the necessary file structure and settings.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top