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 project 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 app

$ python manage.py generate spine:scaffold app appclass name message date

Examples

For more information, please see the Example.

Setup

$ pip install django-spine

History

0.0.1 (2012-06-16)

  • Alpha

0.0.2 (2012-06-17)

  • Added the django-pipeline and eco package to requirements.txt

  • modify examples

  • modify README.rst

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.0.2.tar.gz (68.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: django-spine-0.0.2.tar.gz
  • Upload date:
  • Size: 68.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-spine-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8d5f9e4614ef7207602278a0feee5ca198af80751c253dd6094b14a83726525f
MD5 8eada27597590099689b3babad8cd2ba
BLAKE2b-256 c3387843b521af0c00fa9d6485f069711d15635fcfe9edb6d4a0cb571185a3c2

See more details on using hashes here.

Supported by

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