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

许可证

麻省理工学院许可证

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
有适合初学者/中级程序员的java教程吗   子类化Java Builder类的设计模式   java如何从手持扫描仪读取/获取不可打印字符   java如何调用注入bean的方法   java如何防止JavaFX菜单间隙直到调整大小?   java以正确的方式从url加载位图   java无法在JPA2中将继承的复合键用作派生id   一个模拟器中的java元组数据结构   java MVC验证问题   javaws在哪里。Solaris Sparc OS中Java8的jar文件?   java从字节数组转换为short生成错误的负值   swing Java:在等待另一个线程完成时更新UI   未安装java Wildfly所需的服务:\   JAVAlang.LinkageError:未能链接freemarker/core/TemplateElement   MacOS Big Sur上的java,运行Eclipse我的JavaFX程序未启动就挂起   java Mockito when()需要一个参数,该参数必须是“模拟时的方法调用”错误   RCP应用程序中捆绑包之间类的java运行时可见性   在java中与字符串相乘