Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Django jrac

Requirements

Django 1.3 or later

Installation

$ pip install django-jquery

Setup

Add 'django.contrib.staticfiles', 'jquery', 'jquery_ui', and 'jrac' to INSTALLED_APPS in your settings.py:

INSTALLED_APPS = (
    # ...

    'django.contrib.staticfiles',
    'jquery',
    'jquery_ui'
    'jrac',

    # ...
)

Make sure you use 'collectstatic' to copy installed files to your static folder:

$ python setup.py collectstatic

Refer to Django static files documentation for additional information.

Usage

You can refer to jquery in your template with:

{{ STATIC_URL }}js/jquery.jrac.js

Custom widget:

class MyWidget(forms.TextInput):
    class Media:
        js = ('js/jquery.jrac.js',)

    def render(self, name, value, attrs=None):
        html = super(MyWidget, self).render(name, value, attrs=attrs)
        # ...
        return html

Deployment:

Use the minified jquery.jrac.min.js instead of jquery.jrac.js

Demo

Check out the demo.

Release files for django-jrac 1.0.2.dev10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-jrac 1.0.2.dev10
File Size Uploaded
django-jrac-1.0.2.dev10.tar.gz 18.3 kB Details

Release files / django-jrac-1.0.2.dev10.tar.gz

Download URL django-jrac-1.0.2.dev10.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e391d45a26399ba3a5bc4eecd7a5f702e5e7c76f7286d514004f85a8a5974459
BLAKE2b-256 checksum
How to use checksums
1b9aa565de03f8b8e664644bf7f01782f51771875231ef35b0425c6863f6f1e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2.dev10 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page