Hacker News new | ask | show | jobs
by raziel2p 1002 days ago
technically that's not dependency injection, but a global service locator.
1 comments

Yeah I agree on that here.

The user doesn't write DI code for Django Class Based views. E.g. the view doesn't accept a Database upon instantiation.