Skip to content

Commit 519dcea

Browse files
authored
Update service_module_injector.md with correct syntax for NINJA_EXTRA config
If someone is following this tutorial, the will get a misleading NinjaExtra config in their settings.py that will silently fail and won't let DI work as expected.
1 parent 790eede commit 519dcea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/service_module_injector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ There are different ways of registering injector Modules in a Django app.
239239
We register modules to `INJECTOR_MODULES` key in Ninja Extra settings in django settings.py
240240

241241
```python
242-
NinjaExtra = {
242+
NINJA_EXTRA = {
243243
'INJECTOR_MODULES': [
244244
'myproject.app1.modules.SomeModule',
245245
'myproject.app2.modules.SomeAppModule',

0 commit comments

Comments
 (0)