On Fri, May 4, 2012 at 9:17 AM, Sells, Fred
<[email protected]> wrote:
> Up to now, I’ve been using Flex for my client side and having Django return
> xml for the last 2 years.  With Adobe’s policy changes regarding Flex
> support, I need to shift future efforts to HTML5.  I’m seeking some general
> advice from the group on basic technology/techniques.  My specific question
> is…
>
>
>
> When looking at the Django templating features vs using a tool like CS5.5
> or expression blend,  what advice would you offer deciding how much to put
> into the template logic and how much to do via AJAX/Javascript/Jquery?   My
> applications are generally 10 to 30 pages and I have a 10% commonality
> between applications.
>
>
>
> Finally we are a small shop and I’m the only developer doing this  and I’m
> concerned about how well I can master the templating syntax.
>

And the last shall be first: The template language is easy.  The
stumbling block I have most often seen is people expecting to be able
to program in it, rather than the proper approach of moving anything
complicated into python code (in the form of model instance methods or
custom tags and filters, or suitable pre-calculation in the view
function).

As to where the functionality goes, that depends on your application.
Things that need to be responsive and shiny, especially if they don't
need information not already loaded, or to change the back end
database, probably deserve to be in the browser.  Even minor amounts
of additional data load or saving can be done over AJAX, though,
obviously, the AJAX has to be connected to a view on the Django side.
Somewhat tricker is how to deal with visitors using browsers which
don't support HTML5 (thank goodness that IE6 is finally starting to
ebb), or curmudgeons like me who have to be persuaded to unblock
JavaScript for your site.

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to