ORM, migrations, views, middleware, forms and Django REST Framework.
A clinic scheduling app uses Django's default ModelBackend as its only
authentication backend. Write entryPoint(user, group_permissions, perm, with_object)
that returns what user.has_perm(perm) (or user.has_perm(perm, obj) when
with_object is true) would return.
In a Django login view for a clinic's staff portal, a colleague calls
authenticate() and then login(). What does each of these functions do,
why do you need both, and what does request.user look like before and
after a successful login?
A junior developer imports parents' accounts into a school portal with
User.objects.create(username=row["email"], password=row["password"])
and nobody can log in afterwards. Explain how Django stores and checks
passwords, why this import fails, and how to fix it.
In a ticketing system, support agents may view and reply to tickets and only team leads may delete them. Explain how Django's built-in permissions and groups would model this, and how you would check a permission in a view and in a template.
An inventory service shares one cache between environments and wants to
log the exact keys it writes. Write entryPoint(config, calls) that
returns, for each call, the final key Django's default key function builds
and the portability warnings Django would emit.
You are adding a JSON API for a school portal's Course model with Django
REST Framework. Compare serializers.Serializer with
serializers.ModelSerializer, and explain what is_valid() and
save() do in a create endpoint.