django的spine插件
django-spine的Python项目详细描述
Django脊柱
django的spine插件
安装
编辑设置.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. )
运行下面的以生成脊椎项目。
$ python manage.py generate spine:new your_app $ python manage.py generate spine:scaffold your_app example name content message
或允许移除。
$ python manage.py destroy spine:scaffold your_app example name content $ python manage.py destroy spine:new your_app
示例
有关详细信息,请参见Example.
设置
$ pip install django-spine
许可证
麻省理工学院许可证