This package has reached EOL and is no longer supported.
For Ember + Django REST Framework projects, use Ember CLI and Ember Django Adapter.
This package enables you to build modern web applications using Ember.js and Django REST Framework. For detailed information on installing and using the adapter, see the wiki documentation.
- IRC: #ember-django-adapter on freenode
- Issues: ember-data-django-rest-adapter/issues
The adapter is packaged separately as an Ember CLI add-on. Installation is very simple:
npm i --save-dev ember-django-adapter
and set the API_HOST
and API_NAMESPACE
configuration variables in
config/environment.js
, e.g.:
if (environment === 'development') {
ENV.APP.API_HOST = 'http://localhost:8000';
ENV.APP.API_NAMESPACE = 'api';
}
if (environment === 'production') {
ENV.APP.API_HOST = 'https://api.myproject.com';
ENV.APP.API_NAMESPACE = 'v2';
}
See the wiki documentation for additional installation instructions, including how to use the adapter with vanilla ember (without using ember-cli).
-
Async belongsTo/hasMany requires a pull-request be merged into ember-data core (#63)
-
Pagination is not yet supported (#80)
I took a large part of this project (including the motivation) from @escalant3 and his tastypie adapter.
Special thanks to all contributors!
Copyright © 2014 Toran Billups http://toranbillups.com
Licensed under the MIT License