[Fixed]-Using backbone/ember makes django being a simple REST API?

13👍

Django is perfectly fine to be used this way, you still get the admin, the models, the orm and all the third-party plugins. However, it isn’t blazingly fast, so if you’re doing simple document level, non-relational REST mapping, you might wan’t to look into node.js and mongoDB for instance.

If you’re sticking with django (like we are, we like the structure it gives us), you can use one of the REST plugins:

If you only want to work with frontend development, checkout the Backend-as-a-Service places like cloudmine.me or firebase.com that handle all backend stuff for you, for a price of course.

1👍

Django may seem unnecessary once you start thinking about single page solutions and Javascript applications, but if you want your site to be ‘fail proof’ it wouldn’t be impossible to develop both a client side Javascript version of the site as well as a backend django side incase the user, or your site’s javascript, fails at some level. Of course this requires creating your site twice, and probably isn’t needed in the age of modern browsers, but such would be one of the few instances where you would mix the two for a complete solution.

0👍

Yes, that’s about it. You can use it to manage authentication to resources and such and maybe use a main view for your application but you won’t need to use the server side templating since these frameworks are made to work with json/xml response.

That’s why a lot of people are moving to lighter backend/backbone or ember combo instead of a complete solution like django. You can also use your django for caching json response which makes your application appears faster.

0👍

We are doing that and use django-piston to make it easier on you.

0👍

Normally you make your entire website under Django and only one page will be a “single app page” using backbone.js, usually that page is a very interactive page, with lots of small updates that occur frequently and need to be shown very fast to the user. This page, because of the large number of changes and user interactions is constructed on the client-side so that you are using his PC resources and not the server’s, the rest of the pages can use django because it offers you a very stable and secure framework for the server-side

Leave a comment