Skip to content

Easy to use AJAX library for django. dajaxice mains goal is to trivialize the asynchronous communication within the django server side code and your js code. It's an "agnostic JS framework" approach and focus on decoupling the presentation logic.

License

Notifications You must be signed in to change notification settings

ifanrx/django-dajaxice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-dajaxice-ng

https://badge.fury.io/py/django-dajaxice-ng.png https://travis-ci.org/ifanrx/django-dajaxice.png?branch=master

This is the next generation of dajaxice maintained by ifanrx.

Dajaxice is the communication core of dajaxproject. It's main goal is to trivialize the asynchronous communication within the django server side code and your js code.

dajaxice is JS-framework agnostic and focuses on decoupling the presentation logic from the server-side logic. dajaxice only requieres 5 minutes to start working.

Documentation

http://django-dajaxice-ng.readthedocs.org/quickstart.html

Django compatibility

django-dajaxice Requires Django 1.7 or above.

Should I use django-dajaxice?

According to Jorge Bastida (https://github.com/jorgebastida),

In a word, No. I created this project 4 years ago as a cool tool in order to solve one specific problem I had at that time.

These days using this project is a bad idea.

Perhaps I'm more pragmatic now, perhaps my vision of how my django projects should be coupled to libraries like this has change, or perhaps these days I really treasure the purity and simplicity of a vanilla django development.

If you want to mimic what this project does, you would only need some simple views and jQuery.

Forget about adding more unnecessary complexity. Keep things simple.

And he has a point. However, what would you do if you are hired to add new features to a django app already built with dajaxice? Replace everything for jQuery (as Bastida suggests) or other technology? Find other guys interested and join forces to move the project forward? I chose the latter.

Project Aims

  • Isolate the communication between the client and the server.
  • JS Framework agnostic (No Prototype, JQuery... needed ).
  • Presentation logic outside the views (No presentation code inside ajax functions).
  • Lightweight.
  • Crossbrowsing ready.
  • Unobtrusive standard-compliant (W3C) XMLHttpRequest 1.0 object usage.
  • Aggresive Django version support while regularly merging from upstream.

Running Tests

$ pip install -r dajaxice/tests/requirements.txt
$ bash test_runner.sh

About

Easy to use AJAX library for django. dajaxice mains goal is to trivialize the asynchronous communication within the django server side code and your js code. It's an "agnostic JS framework" approach and focus on decoupling the presentation logic.

Resources

License

Stars

Watchers

Forks

Packages

No packages published