Contents Menu Expand Light mode Dark mode Auto light/dark mode
If you are new to Hotwire, you may be interested in this free eBook Hotwire Django Tutorial
django-turbo-helper 2.1.4 documentation
django-turbo-helper 2.1.4 documentation
  • Installation
  • Form Submission
  • dom_id
  • Turbo Frame
  • Turbo Stream
  • Real Time Updates via Websocket
  • Extend Turbo Stream
  • Multi-format Response
  • Signal Decorator
  • Hints on testing
  • API Reference
    • turbo_helper
      • turbo_helper.channels
        • turbo_helper.channels.broadcasts
        • turbo_helper.channels.stream_name
        • turbo_helper.channels.streams_channel
      • turbo_helper.templatetags
        • turbo_helper.templatetags.turbo_helper
      • turbo_helper.apps
      • turbo_helper.constants
      • turbo_helper.middleware
      • turbo_helper.renderers
      • turbo_helper.response
      • turbo_helper.shortcuts
      • turbo_helper.signals
      • turbo_helper.stream
      • turbo_helper.turbo_power
Back to top
Edit this page

turbo_helper.constants¶

Module Contents¶

Classes¶

ResponseFormat

Attributes¶

TURBO_STREAM_MIME_TYPE

turbo_helper.constants.TURBO_STREAM_MIME_TYPE = 'text/vnd.turbo-stream.html'¶
class turbo_helper.constants.ResponseFormat¶
html = False¶
json = False¶
turbo_stream = False¶
Next
turbo_helper.middleware
Previous
turbo_helper.apps
Copyright © 2024, Michael Yin
Made with Sphinx and @pradyunsg's Furo
On this page
  • turbo_helper.constants
    • Module Contents
      • Classes
      • Attributes
        • TURBO_STREAM_MIME_TYPE
        • ResponseFormat
          • ResponseFormat.html
          • ResponseFormat.json
          • ResponseFormat.turbo_stream