Skip to main content

A Django app to serve Ember index files.

Project description

Build Status Code Climate Coverage Status Requirements Status

A Django app to serve Ember index files deployed with ember-cli-deploy.

Installation

  1. Install application using $ pip install django-ember-index.

  2. Add ember_index to your INSTALLED_APPS setting like this:

INSTALLED_APPS = (
    ...
    'ember_index',
)

Usage

  1. Register Ember application(s) at urls.py with redis’s adapter:

from ember_index import index, RedisAdapter

adapter = RedisAdapter(host='localhost')

urlpatterns = [
    index(r'^other/', 'other-app', adapter),
    index(r'^', 'my-app', adapter),
]

The provided regex is used to set router’s rootURL by replacing pregenerated baseURL environment configuration at index file.

All adapter’s keyword arguments will be passed into the StrictRedis object on initialization.

  1. Access application(s) at:

  • / with current revision of my-app,

  • /r/ed54cda/ with specific revision of my-app,

  • /other/ with current revision of other-app,

  • /other/r/ed54cda/ with specific revision of other-app.

License

Django Ember Index is available under the MIT license. See the LICENSE file for more info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ember-index-0.5.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file django-ember-index-0.5.1.tar.gz.

File metadata

File hashes

Hashes for django-ember-index-0.5.1.tar.gz
Algorithm Hash digest
SHA256 5d6c77780b884433513e209da132eefadb67f61d29c9c82de63d3eb8a1e6479c
MD5 cd3d44bac75c99de53b7bde8a130625e
BLAKE2b-256 f7a239eaa95274f29eaf16df6125eaa1ea917a5384eeca767aa16103363e9ab3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page