Unit 1: Introduction to Django - Subjective Questions

INT253 — Web Development In Python Using Django • Practice Questions with Detailed Answers

20 questions

1

Define Django. Explain its main features and why it is used for web development.

2

Explain the MVT architectural pattern used by Django.

3

Describe the steps required to install Python and verify that it is installed correctly.

4

What is a Python virtual environment? Explain why and how it should be used in a Django project.

5

Explain how to install Django and verify the installation.

6

Describe how to set up a Django project in a code editor for efficient development.

7

Distinguish between a Django project and a Django app, giving suitable examples.

8

Describe the steps for creating and running your first Django project.

9

Explain the purpose of the important files generated by django-admin startproject.

10

Compare django-admin and manage.py. When should each command-line utility be used?

11

Explain the purpose and usage of the runserver command. Why is it unsuitable for production?

12

Describe the functions of the makemigrations and migrate commands. Clearly distinguish between them.

13

Explain any five commonly used manage.py commands and state their purposes.

14

Describe the procedure for creating a Django app and connecting it to an existing project.

15

Explain the purpose of the standard files and directories generated by the startapp command.

16

What is INSTALLED_APPS in Django? Explain why an app must usually be registered there.

17

Explain how URL routing connects a browser request to a Django app and its view.

18

Describe the role of settings.py and explain important settings found in a newly created Django project.

19

Compare WSGI and ASGI in the context of a Django project. What are the purposes of wsgi.py and asgi.py?

20

Develop a complete command sequence for setting up a Django project with an app named students, and explain the purpose of each stage.