This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Spine plugin for Django

Project Description

Django Spine

Spine plugin for Django

Installation

edit settings.py

# set (subcommand, spine, pipeline) package.
INSTALLED_APPS = (
    # external
    "subcommand",
    "spine",
    'pipeline',

    # applications
    "your_app" #
)

# set static directory for your app.
PIPELINE_JS = {
    'application': {
        'source_filenames': (
            'js/*.js',
            'js/spine/*.js',
            'js/spine/**/*.js',
            'js/your_app/lib/*.coffee',
            'js/your_app/*.coffee',
            'js/your_app/models/*.coffee',
            'js/your_app/controllers/*.coffee',
            'js/your_app/views/**/*.eco',
        ),
        'output_filename': 'js/application.r?.js'
    }
}

# set Eco Compiler
PIPELINE_COMPILERS = (
    'pipeline.compilers.coffee.CoffeeScriptCompiler',
    'spine.compiler.EcoCompiler',  # this compiler.
)

Run the below for generating spine’s project.

$ python manage.py generate spine:new your_app
$ python manage.py generate spine:scaffold your_app example name content message

Or allows removing.

$ python manage.py destroy spine:scaffold your_app example name content
$ python manage.py destroy spine:new your_app

Examples

For more information, please see the Example.

Setup

$ pip install django-spine

License

MIT License

Release History

Release History

This version
History Node

0.3.3

History Node

0.3.2

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-spine-0.3.3.tar.gz (410.1 kB) Copy SHA256 Checksum SHA256 Source Aug 2, 2012

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