Generating Ember models in Django

I’ve been researching JS MVC frameworks, and have spent a bit of time playing with Ember & Django. One aspect that seems awkward is generating the client-side models; it’s a bit of a pain, not to mention not DRY, to have to create client-side versions of my Django models. I’m wondering if this is a problem that’s been solved somewhere already in the Ember community?

For example, KnockoutJS has django-knockout-modeller, which seems to be roughly what I’m looking for.

And, as a follow-up question, is there any reason it would be a bad idea to generate the client models in this way? Am I just approaching the issue with the wrong perspective?


In case anyone’s interested – I made a very basic port of django-knockout-modeler:


I’ve found this useful for prototyping a migration from pure Django to Django+Ember, but it’s lacking a lot of features that would be required to make it suitable for use in production. Let me know if you find it useful, or if you have suggestions for improvements.