-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get shared_data to work #29
Comments
Did you add your middleware in settings MIDDLEWARE?
|
Thanks, will see if this works. Because I'm just seeing the second middleware ("core.middleware.inertia_share") for the first time. |
And I noticed that after form request using useForm() |
"core.middleware.inertia_share" throws errors |
"core" is your django app (usually you have at least one) https://docs.djangoproject.com/en/4.2/topics/http/middleware/#activating-middleware |
The exact example in the docs just doesn't work in my case, or was anything omitted in the docs? The idea of having to pass the same data to all views, which is now the only alternative, doesn't seem quite nice.
The text was updated successfully, but these errors were encountered: