Django Bindings

Django Bindings has been deprecated. For more, see the Deprecation Notice.

The Django Bindings component of the Splunk Web Framework uses the Django web framework to provide a built-in easy-to-use application server environment so that you can take advantage of Django's large and active developer community, with support and tools such as Django's URL dispatching, views, forms, and templates. With the Django Bindings component of the Web Framework, these features help to increase your productivity and make the Splunk Web Framework easier to use:

  • The development environment in Splunk has a better flow―no need to restart (refresh) Splunk Web from a custom endpoint every time you save your code.
  • Write server-side Python handlers and create custom URL routing.
  • Write Django page templates for client-side components in your apps. With built-in URL routing, page templates are picked up automatically.
  • Use Django tags to quickly declare Splunk views and search managers on your page templates.
  • App setup is easier using setup forms.

To get started quickly with Django Bindings:

  1. Create a Web Framework app
  2. Create a page template for your app
  3. Add a search manager to a template
  4. Add a Splunk view to a template

Or, see the Tutorial: Create an app using Django Bindings.