Python track

Django interview questions and answers

Panel-ready Python & Django questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

65 Qs
42 Moderate DRF Python

What do DRF routers do?

Short take

Simple meaning

DefaultRouter and SimpleRouter bind viewset actions to URL patterns including optional trailing slashes.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
44 Moderate DRF Python

How does pagination work in DRF?

Short take

Simple meaning

Pagination classes split list querysets into pages and add next/previous metadata.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
58 High Signals Python

How can signals hurt performance at scale?

Short take

Simple meaning

Every save() may fan out to many receivers, including ones in third-party apps you forgot about.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
59 High Signals Python

What is surprising about m2m_changed?

Short take

Simple meaning

It fires with actions such as pre_add, post_add, pre_remove, and post_clear, and pk_set may be None on clear.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
60 High DRF Python

How does DRF throttling work internally?

Short take

Simple meaning

Throttle classes implement allow_request and wait, typically using a cache key of user id or IP plus a rate such as 100/hour.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 3 of 4 Next
Chat with us