Saturday, May 5, 2012

Re: template logic vs AJAX newbie seeks advice

I think I'm in the same situation of considering Django for developing a webapp or knowing Django features to develop UI. Is that possible to develop UI like a desktop application, features like, tab, Buttons, Checkboxes, lists, ploting graphs based on the data read from DB.

Please do suggest in this regard. Sorry, may be my post is irrelevant to this thread in perticular.

Cheers
Hussain



On Sat, May 5, 2012 at 9:07 PM, Reinout van Rees <reinout@vanrees.org> wrote:
On 04-05-12 19:15, Etienne B. Roesch wrote:
Thanks for the link to your post Reinout!

So, have you made a decision about the way to go for your application?

For the near future we're sticking with templates, but with javascript for the spots where we need it (we'll use backbone to clean up on part of the UI).

I like the idea of using two different systems from the backend and the
frontend. I am new to django (a month+), but I don't think there was
ever a doubt in mind that my frontend would be .js based, and I liked
that django dev let /static to be dealt with by say plain Apache,
instead of enforcing python for that too.

And... with django's staticfiles handling you can even bundle js/css/images per app and Django'll combine it all together. Works great.

As I said, I am new to django, but I have done some experiments (wrote
my own little hello world app, moved on to deploying mezzanine to
dotcloud), and as I understand django is meant to be a flexible system
to handle data, and was never meant to be a flexible frontend, right?

Django has always been frontend-agnostic. There's only the admin interface, for the rest you have to build everything yourself.

Now, even though I do like the proper tools for the proper jobs, the
perspective of maintaining two systems built on different technologies
raises red flags. What do people think?

Well, if the separation is clean enough, it is fine. Just make sure you don't tie them together too much.


Reinout

--
Reinout van Rees                    http://reinout.vanrees.org/
reinout@vanrees.org             http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

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


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate