Question Bank
3705 approved questions from the community
What happens when you run `php artisan migrate:rollback` in Laravel?
What command creates a new migration file in Laravel?
What is the purpose of the `_prisma_migrations` table mentioned in the context of migrations?
What Blade directive is used to check if a user is authenticated?
What is the purpose of the shadow database in Laravel migrations?
In which directory are route definitions stored in Laravel?
What does the list_display option do in ModelAdmin?
What is the purpose of the ModelAdmin class in Django?
The Django admin interface can display related objects through foreign key relationships in the list view.
The Django admin interface is suitable for production client-facing applications.
What does on_delete=models.CASCADE mean in a ForeignKey relationship?
What is the main difference between ForeignKey and ManyToManyField?
What is a ManyToManyField in Django?
What is a ForeignKey in Django models?
Models must be registered in admin.py to appear in the Django admin interface.
An abstract base class in Django creates its own database table.
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 is the purpose of URL namespacing in Django?
What does the render() function do in Django views?