How do you run a development server in Django?

How do you run a development server in Django?

a) By running python manage.py runserver
b) By starting the admin interface
c) By configuring the database
d) By uploading the project to the hosting server

Answer:

a) By running python manage.py runserver

Explanation:

You can start the development server in Django by running the python manage.py runserver command, which launches the app locally at http://127.0.0.1:8000/.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top