This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Tools to integrate develop an Ember app using Django as the backend.

It can:

* Generate an Ember app inside your Django project
* Preconfigure said app to expect Django REST Framework's JSON data
* Automatically generate Ember models based on your Django models
* Run Ember automatically alongside your Django development server,
configuring the Ember app to look for an API endpoint specified in
Django's ``.

It makes very few Django-specific changes to the internal Ember project, which
should make it easier to separate the two projects later, if you outgrow the
shared-repo strategy.


To use django_ember_toolkit, you'll need [Node](
and [Ember CLI]( See the
installation instructions at their respective sites for details.

Then just `pip install django_ember_toolkit` and add `django_ember_toolkit` to


django_ember_toolkit looks in `settings.EMBER_TOOLKIT` for a configuration
dictionary containing:

"API_PATH": "/path/to/api", #the URL at which Ember can find your REST API
"EMBER_APP_NAME": "some-name", #the name ember-cli should give your app
"EMBER_APP_PATH": "client", # optional: the filesystem path, relative to
# BASE_DIR, where the Ember project should be
# stored
"MODELS_TO_SYNC": ["auth.*", "myapp.Widget"] # models to use when
generating Ember models

Note: MODELS_TO_SYNC takes a list of model specifiers, each either
"[appname].[ModelClass]" or "[appname].*" (the latter selects all models in the
indicated app)


django_ember_toolkit exposes a set of new management commands:

* `create_ember_project`: generates a new Ember app inside your Django
project, configures it to use Django REST Framework's JSON format,
and overwrites Ember's environment.js config file to allow
django_ember_toolkit to easily "push" certain settings into Ember.

* `generate_ember_config`: generates a backend-config.js file, which is
loaded by django_ember_toolkit's modified environment.js file. This
is usually run automatically when you need it.

* `generate_ember_models`: using ember-cli's scaffolding tools, generates a
set of client-side models based on the models specified in
settings.EMBER_TOOLKIT['MODELS_TO_SYNC']. If the models already exist,
Ember CLI will ask if you want to replace them on an individual basis.

* `runserver_ember`: runs the Ember development server alongside the Django
development server.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_ember_toolkit-0.1.tar.gz (11.1 kB) Copy SHA256 Checksum SHA256 Source Aug 28, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting