Question Bank
1899 approved questions from the community
ManyToManyField automatically creates an intermediary join table in the database.
A ForeignKey field requires an on_delete parameter to specify behavior when the referenced object is deleted.
What does the render() function do in Django views?
What is the purpose of the include() function in Django URLs?
What function is used for simple URL pattern matching in Django?
Django migrations can only be applied forward and cannot be reversed.
In Django URL patterns, the view parameter must always be a function reference.
What is the difference between select_related() and prefetch_related() in Django?
What is the purpose of the select_related() method in Django QuerySets?
What does the create() method do in Django's ORM?
Once a QuerySet is evaluated, its results can still be modified by adding more filters.
QuerySets in Django are evaluated immediately when they are created.
In Django's MTV pattern, what component is most similar to the Controller in traditional MVC?
In Django's MTV architecture, what is the primary responsibility of the Model component?
Django model fields can have descriptors like 'null' and 'blank' to define their behavior.
In Django, each app must have its own urls.py file for URL routing.
What is model inheritance in Django?
What are the two main types of model inheritance in Django?
What is the purpose of search_fields in ModelAdmin?
What is the purpose of the Django admin interface for migrations?