How to use custom widgets with dojango?

32 views
Skip to first unread message

voger

unread,
Apr 19, 2014, 7:53:38 AM4/19/14
to django...@googlegroups.com
I want to move my project from jquery to dojo toolkit and I see that
there is a dojango project that integrates dojo with django. The
instructions are simple enough and I already managed to run the sample
project provided. Unfortunately I need to use some custom dojo widgets
that I already have made. I don't know how to integrate them in my project.

I found this blog post
http://uxebu.com/blog/2008/09/09/dojo-namespacing-with-dojango/ but it
is from 2008 and since then many changes are introduced to both django
and dojo. That blog post uses many functions that are now deprecated.

Let's assume that my apps directory tree looks like this

├── __init__.py
├── __init__.pyc
├── admin.py
├── models.py
├── models.pyc
├── static
│ └── widgets
│ ├── FloatingWindow.js
│ ├── Taskbar.js
│ ├── css
│ │ ├── floatingwindow.css
│ │ ├── icons
│ │ │ ├── gridcontainer_grip.gif
│ │ │ ├── grip_bg.gif
│ │ │ ├── pixel.gif
│ │ │ ├── resize.png
│ │ │ ├── resizeRtl.png
│ │ │ ├── rotator.png
│ │ │ ├── splitterToggleH.png
│ │ │ └── splitterToggleV.png
│ │ └── taskbar.css
│ ├── images
│ └── templates
│ └── Taskbar.html
├── templates
│ └── index.html
├── tests.py
├── views.py
└── views.pyc

can someone please provide some instructions how to use those custom
widgets in a django template?

Reply all
Reply to author
Forward
0 new messages