Question Bank
1085 approved questions from the community
What is Django?
What is the difference between a Django project and a Django app?
Which of the following are key features of Django? (Select all that apply)
What is the purpose of the settings.py file in a Django project?
What is a Django model?
How do you define a Django model?
Models must be registered in admin.py to appear in the Django admin interface.
What is a ManyToManyField in Django?
What is a ForeignKey in Django models?
What is the purpose of the Django admin interface?
Django migrations are stored as Python files that can be version controlled.
URL patterns in Django can use regular expressions for advanced URL matching.
What is a QuerySet in Django?
Django's ORM provides protection against SQL injection attacks.
What does ORM stand for in Django?
Django models automatically generate database tables when migrations are run.
Django's ORM allows you to interact with databases using Python objects instead of writing SQL queries.
What is the role of the urls.py file in a Django project?
Django follows the DRY (Don't Repeat Yourself) principle.
What command applies pending migrations to the database?