Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Utilities for integration with django.

Project Description

Utilities for integration with django.

This app provides template filters that can alter data attributes of the form fields required for behavior. It also have a ‘behavior’ and ‘behavior-more’ libraries bundled for use with django.contrib.staticfiles.

The license is MIT.


pip install django-mootools-behavior


  1. Add ‘mootools_behavior’ to INSTALLED_APPS;
  2. (optional) run python collectstatic in order to get ‘behavior’ javascript files;
  3. include the necessary js into html and use provided template filters in order to set attributes for form elements.



Sets ‘data-behavior-…’ attribute to a form field:

{% load mootools_behavior %}

<!-- data-behavior:"OverText" will be added to input field -->
{{ form.title|behave:"OverText" }}


Sets HTML5 data attribute ( ).


{% load mootools_behavior %}

<!-- data-behavior:"OverText" will be added to input field -->
{{ form.title|set_data:"behavior:OverText" }}


If you’ve found a bug, implemented a feature or have a suggestion, do not hesitate to contact me, fire an issue or send a pull request.

Source code:

Report bugs:

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-mootools-behavior-0.1.1.tar.gz (17.3 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting