You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyone else trying to implement the dependency injector package?
Would love some examples on y'alls implementations.
Atm I have been adding it under the main project next to asgi and added asynccontext with lifespan into the asgi file.
I might need to dig deeper into ninja to understand the full lifecycle.
Anyways any tips and tricks or implementation examples would be much appreciated :)
The text was updated successfully, but these errors were encountered:
devjerry0
changed the title
Anyone else trying to run this with dependency injector?
Anyone else trying to run Ninja with dependency injector?
Feb 7, 2025
devjerry0
changed the title
Anyone else trying to run Ninja with dependency injector?
Ninja + dependency injector?
Feb 7, 2025
If I understand correctly what you're trying to achieve, you might find django-ninja-extra interesting. It has built-in support for Injector, is compatible with django-injector, and handles automatic dependency resolution.
Even if it's not exactly what you're looking for, it could serve as a useful reference or give you some ideas. HTH
Anyone else trying to implement the dependency injector package?
Would love some examples on y'alls implementations.
Atm I have been adding it under the main project next to asgi and added asynccontext with lifespan into the asgi file.
I might need to dig deeper into ninja to understand the full lifecycle.
Anyways any tips and tricks or implementation examples would be much appreciated :)
The text was updated successfully, but these errors were encountered: