Skip to main content

Django JS Tools

Project description

https://secure.travis-ci.org/noirbizarre/django.js.png

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.

Compatibility

Django.js requires Python 2.7 and Django 1.4.

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.4 (2012-12-04)

  • Upgraded to jQuery 1.8.3

  • Upgraded to Jasmine 1.3.0

  • Synchronous URLs and context fetch.

  • Use django.utils.termcolors

  • Class based javascript testing tools:
    • Factorize JsTestCase common behaviour

    • Removed JsTestCase.run_jasmine() and added JasmineMixin

    • Removed JsTestCase.run_qunit() and added QUnitMixin

    • Extract TapParser into djangojs.tap

  • Only one Django.js test suite

  • Each framework is tested against its own test suite

  • Make jQuery support optionnal into JsTestCase

  • Improved JsTestCase output

  • Drop Python 2.6 support

  • Added API documentation

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


Download files

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

Source Distribution

django.js-0.4.tar.gz (135.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page