dojango
Django and Dojo - The perfect couple




       Tobias von Klipstein, uxebu
        http://twitter.com/uxebu
Django?

• Request/Response framework
• MVC web framework
• using Python
• like Rails / Symfony / ...
Django - Overview
                            Middleware                  Template Tags / Filter
      Model
             ...
Why?

   Django is Python      Dojo is JavaScript
      Templating             dojox.dtl
    URL dispatcher     Reinhardt ...
How?
settings.py
INSTALLED_APPS = ('dojango', ...)
MIDDLEWARE_CLASSES = ('dojango.middleware.DojoAutoRequireMiddleware', ....
Plain old html
from django.forms import *
Uhh, shiny
from dojango.forms import *
DataGrid
{% load dojango_grid %}
{% simple_datagrid app Model %}
thx
    http://dojotoolkit.org
http://docs.dojocampus.org
     http://dojango.org
   http://blog.uxebu.com


     Tobias v...
Upcoming SlideShare
Loading in …5
×

Dojango

3,909 views

Published on

These slides show the capabilities of dojango, a reusable app that integrates the JavaScript Framework Dojo into the Python web framework Django.

Published in: Technology

Dojango

  1. 1. dojango Django and Dojo - The perfect couple Tobias von Klipstein, uxebu http://twitter.com/uxebu
  2. 2. Django? • Request/Response framework • MVC web framework • using Python • like Rails / Symfony / ...
  3. 3. Django - Overview Middleware Template Tags / Filter Model URL Mapper Commandline commands Template Context Processor Forms View => Controller Settings Templates => View ADMIN DOJANGO Reusable Apps AUTH
  4. 4. Why? Django is Python Dojo is JavaScript Templating dojox.dtl URL dispatcher Reinhardt (by SitePen) Documentation system based on ReSt and Sphinx Django Software Dojo Foundation Foundation Starts with D and ends with O
  5. 5. How? settings.py INSTALLED_APPS = ('dojango', ...) MIDDLEWARE_CLASSES = ('dojango.middleware.DojoAutoRequireMiddleware', ...) urls.py urlpatterns = patterns('', (r'^dojango/', include('dojango.urls')), ...) Your template {% extends quot;dojango/base.htmlquot; %} {% block dojango_content %} {% endblock %}
  6. 6. Plain old html from django.forms import *
  7. 7. Uhh, shiny from dojango.forms import *
  8. 8. DataGrid {% load dojango_grid %} {% simple_datagrid app Model %}
  9. 9. thx http://dojotoolkit.org http://docs.dojocampus.org http://dojango.org http://blog.uxebu.com Tobias von Klipstein, uxebu tobias@uxebu.com http://twitter.com/uxebu

×