跳转到主要内容

Inyoka ubuntuusers 主题

项目描述

在开发系统中

  1. 在克隆的Inyoka仓库旁边运行 git clone git@github.com:inyokaproject/theme-ubuntuusers.git。 (基本上,你可以在任何地方克隆主题仓库,但从支持的角度来看,最好使用与Inyoka相同的基文件夹)。克隆后,文件结构应如下所示

    $ tree -L 1
    .
    ├── inyoka
    ├── theme-ubuntuusers
    └── maybe another-theme
  2. 进入仓库: cd theme-ubuntusers

  3. 激活源 source ~/.venvs/inyoka/bin/activate

  4. 作为开发包安装: python setup.py develop

  5. 运行 npm install 以安装 Grunt

  6. 运行 ./node_modules/grunt-cli/bin/grunt watch 以构建所有静态文件并监视CSS / JS文件的文件更改

在生产环境中

  1. 运行 pip install -U "git+ssh://git@github.com:inyokaproject/theme-ubuntuusers.git@staging#egg=inyoka-theme-ubuntuusers"

部署

  1. 运行 npm install 以安装 Grunt

  2. 运行 ./node_modules/grunt-cli/bin/grunt 以构建所有静态文件

  3. 在你的Django项目中运行 manage.py collectstatic

让Django了解主题

'inyoka_theme_ubuntuusers'添加到inyoka/development_settings.py中的INSTALLED_APPS

INSTALLED_APPS = INSTALLED_APPS + (
    'inyoka_theme_ubuntuusers',
)

项目详情


由以下支持