Tutorial :How to use Dojo in my Django application?



Question:

How do I use Dojo in my Django application? Please show me comprehensive examples on how to do this.
Any links to sample code for this combination will be appreciated

NB: I also don't mind examples using Dojango.


Solution:1

You may have seen this blog post: http://blog.uxebu.com/2008/07/26/ajax-with-dojango/

You can also try the various examples, blog articles and docs here. http://code.google.com/p/dojango/


Solution:2

  1. copy dojango over to you project root
  2. include the following lin in your settings.py > MIDDLEWARE_CLASSES: 'dojango.middleware.DojoCollector',
  3. include the following lin in your settings.py > TEMPLATE_DIRS: '/<project_location>/dojango/templates/dojango', (so you can see some nice demos)
  4. include the following lin in your settings.py > INSTALLED_APPS: 'dojango',
  5. change from django.forms import * to from dojango.forms import * in your forms.py

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »