Inyoka ubuntuusers 主题
项目描述
在开发系统中
在克隆的Inyoka仓库旁边运行 git clone git@github.com:inyokaproject/theme-ubuntuusers.git。 (基本上,你可以在任何地方克隆主题仓库,但从支持的角度来看,最好使用与Inyoka相同的基文件夹)。克隆后,文件结构应如下所示
$ tree -L 1 . ├── inyoka ├── theme-ubuntuusers └── maybe another-theme
进入仓库: cd theme-ubuntusers
激活源 source ~/.venvs/inyoka/bin/activate
作为开发包安装: python setup.py develop
运行 npm install 以安装 Grunt
运行 ./node_modules/grunt-cli/bin/grunt watch 以构建所有静态文件并监视CSS / JS文件的文件更改
在生产环境中
运行 pip install -U "git+ssh://git@github.com:inyokaproject/theme-ubuntuusers.git@staging#egg=inyoka-theme-ubuntuusers"
部署
运行 npm install 以安装 Grunt
运行 ./node_modules/grunt-cli/bin/grunt 以构建所有静态文件
在你的Django项目中运行 manage.py collectstatic
让Django了解主题
将'inyoka_theme_ubuntuusers'添加到inyoka/development_settings.py中的INSTALLED_APPS
INSTALLED_APPS = INSTALLED_APPS + ( 'inyoka_theme_ubuntuusers', )