Comments (4)
I'm not seeing this, are you adding the request to .response()
when you return the TurboStream
, like so .response(request=request)
.
The docs just have .response(request)
, I updated via a pull request but the rendered docs don't seem to have updated.
from django-turbo-helper.
Thanks @chrisgrande, indeed i didn't update the docs and i tried to pass the request via kwargs but it didn't work for me... Strange
from django-turbo-helper.
.response(request=request)
indeed should work (I've added a couple tests to confirm). Perhaps @JulianFeinauer if you could provide more context for what you are doing?
from django-turbo-helper.
@danjac and @chrisgrande you both are right. I tried it again and it works. No idea what I did wrong initially.
So we can either keep it as is to have the request more explicit as variable or close this PR. Its up to you : )
from django-turbo-helper.
Related Issues (17)
- Any concerns with supporting older Python? HOT 4
- What's the difference with turbo-django? HOT 4
- XSS vulnerable HOT 4
- Question about the future HOT 1
- Duplicate saves in TurboCreateView HOT 1
- Add templatetag
- turbo_stream_from
- dom_id improvement
- Return TurboStreamResponse automatically if needed HOT 1
- rename Pypi package
- Add doc: Return multiple formats in Django
- Make turbo stream action extensible
- Handle bool variable like Django attrs.html
- Update multi response
- Work with django-actioncable 1.0.4
- Rename cable_channel and channel_helper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-turbo-helper.