Skip to main content

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

Documentation

django-spine.readthedocs.org

License

MIT License

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-spine-0.3.3.tar.gz (410.1 kB view details)

Uploaded Source

File details

Details for the file django-spine-0.3.3.tar.gz.

File metadata

File hashes

Hashes for django-spine-0.3.3.tar.gz
Algorithm Hash digest
SHA256 08ff0da15e2d8d957256f5cd768574f3cc89a92e5cced68a371417280fcaadec
MD5 69a15441b4e098692df02f695054a475
BLAKE2b-256 ec3d08337b52a10123f36a853c8ed312b443c01f471eceb5ba9f11e4271f4f52

See more details on using hashes here.

Supported by

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