Django JS Tools
Project description
Django.js provides tools for JavaScript development with Django.
Django.js is inspired from:
This is currently a work in progress (API wil not be stable before 1.0) so don’t expect it to be perfect but please submit an issue for any bug you find or any feature you want.
Installation
You can install Django.JS with pip:
$ pip install django.js
or with easy_install:
$ easy_install django.js
Add djangojs to your settings.INSTALLED_APPS.
Add djangojs.urls to your root URL_CONF:
urlpatterns = patterns('', ... url(r'^djangojs/', include('djangojs.urls')), ... )
Documentation
The documentation is hosted on Read the Docs
Changelog
0.3.2 (2012-11-10)
optionnal support for Django Absolute
0.3.1 (2012-11-03)
Added JsTestView.django_js to optionnaly include django.js
Added js_init block to runners to templates.
0.3 (2012-11-02)
Improved ready event handling
Removed runners from urls.py
Added documentation
Added ContextJsonView and Django.context fetched from json.
Improved error handling
Added DjangoJsError custom error type
0.2 (2012-10-23)
Refactor template tag initialization
Provides Jasmine and QUnit test views with test discovery (globbing)
Provides Jasmine and QUnit test cases
Added Django.file()
Added {% javascript %}, {% js %} and {% css %} template tags
0.1.3 (2012-10-02)
First public release
Provides django.js with url() method and constants
Provides {% verbatim %} template tag
Patch jQuery.ajax() to handle CSRF tokens
Loads the django javascript catalog for all apps supporting it
Loads the django javascript i18n/l10n tools in the page
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.