Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-js-utils 0.0.5

    Download button

    No screenshots available
    Downloads: 45  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Vebjorn Ljosa | More programs
    BSD License / FREE
    September 10th, 2012, 05:38 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-js-utils description

    Django app to help RIA development on top of a Django backend

    django-js-utils is a Django app that aims to offer Django/JavaScript developers with various tools which will help RIA development on top of a Django backend.

    Installation and usage

    - Add django_js_utils to your python path and add the django_js_utils application to your INSTALLED_APPS
    - Add the jsurls view to your URL patterns, e.g.,

    (r'^jsurls.js$', 'django_js_utils.views.jsurls', {}, 'jsurls'),

    - Load the static django_js_utils.js (which contains the reverse function) and the dynamically-generated jsurls.js from every web page where you plan to use the reverse function (likely just your base.html template). Example:

    < script type="text/javascript" src="{% staticfile 'django_js_utils.js' %}" >< /script >
    < script type="text/javascript" src="{% url jsurls %}" >< /script >


    - In your JavaScript code, reverse URLs as follows:

    django_js_utils.urls.resolve('dashboard')
    django_js_utils.urls.resolve('time_edit', { project_id: 1, time_id: 2 })


    For more information about usage, see example.html


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django backend | RIA development | Django | backend | RIA

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM