Saturday, June 1, 2013

Re: Django & Ember

Yea, I'm just getting into Django & Ember too.
The django ember app posted above is really just some convenience tags for the most part.
I'm not an expert at all on this and I'm probably in about the same place as you with this.
My initial feeling is that Ember is just like Django on the front end with its MVC and HTML templates and data models.
After begining to learn it its been a little more of a learning curve than I thought.
The templating and models are quite similar but the interaction between Views and Controllers is a bit different.
RIght now there seem to be too many ways of doing the same thing in Ember for me to think too clearly and code without making mistakes,
but that's how django felt at first too.
There's a lot of Javascript MVC frameworks developing and it seems to be key in the future of web dev
I think Ember and maybe Backbone have the most momentum behind them ( a weakly supported opinion actually )
I think Backbone is supposed to be more simple and clean cut and Ember more complete and feature rich.
Obviously in JS MVC your usually storing your models over the wire via AJAX, so that's an important part of the technology stack
Ember seems to be developing functionality to make this nice and easy.
If your EMber models are mirror images of your django models AJAX shouldn't require much coding
I just noticed that the django ember app has recently added an adaptor to TastyPie that should simplify AJAX between the front and back end.
Hopefully the analouge for DJango REST framework is on its way !
The documentation for Ember seems to be improving rapidly too.
here's some video tuts:
http://ember101.com/
But I think django and ember are meant for each other and will grow together,
but I wish I knew what I was talking about more. ;-0


On Saturday, June 1, 2013 1:34:01 AM UTC-4, JJ Zolper wrote:
Hello,

So I'm thinking about bundling together Django and Ember. The reason is my front end is going to be lots of data in realtime. Think like overlaying a map with information for an example. Lots of data needs to be handled on the front end. Things need to be extremely dynamic.

I love Django and the interface with the database and all that. I'm thinking a powerful solution might be tagging Django and Ember together. Has anyone done this? Anyone have any advice? My questions really are (like the questions on my mind are) like lets say I query the database and get this resulting queryset or list in a variable. In Django you hand that list off to the template. Like I'm not sure how to hand things back and forth between Django and Ember. How I would hand the result from the query to Ember aka JS and then display that to the front end.

Does this sound like a powerful solution for handling large amounts of data? Really any information would be wonderful, better than nothing for sure...

I need high performance and power for processing quickly and giving the users a seamless experience and I'm wondering if this might be the ticket?

Thanks so much,

JJ Zolper

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

No comments:

Post a Comment