Inyoka default Theme
Installation
On development systems:
Run
git clone git@github.com:inyokaproject/theme-default.git
next to the cloned Inyoka repository. (Basically, it doesn't matter were you clone the theme repository, but for support reasons it might be better to use the same base folder like for Inyoka). After cloning the file-structure should look like:$ tree -L 1 . ├── inyoka ├── theme-default └── maybe another-theme
Switch into the repository:
cd theme-default
Activate source
source ~/.venvs/inyoka/bin/activate
Install as a development package:
python setup.py develop
Run
npm install
to install GruntRun
./node_modules/grunt-cli/bin/grunt watch
to build all static files and watch for file changes on the CSS / JS filesLet Django know about the theme. Add
'inyoka_theme_default'
to theINSTALLED_APPS
ininyoka/development_settings.py
:INSTALLED_APPS = INSTALLED_APPS + ( 'inyoka_theme_default', )
On Production
- Run
pip install -U "git+ssh://git@github.com:inyokaproject/theme-default.git@staging#egg=inyoka-theme-default"
Deployment
- Run
npm install
to install Grunt - Run
./node_modules/grunt-cli/bin/grunt
to build all static files - Run
manage.py collectstatic
in your Django project
Running the tests
We're using tox to handle different Python (other) dependencies:
$ pip install tox $ tox py27 runtests: PYTHONHASHSEED='3431216340' py27 runtests: commands[0] | python -m unittest discover ........................................................................... .. ---------------------------------------------------------------------- Ran 77 tests in 0.533s OK py33 runtests: PYTHONHASHSEED='3431216340' py33 runtests: commands[0] | python -m unittest discover ........................................................................... .. ---------------------------------------------------------------------- Ran 77 tests in 0.601s OK py34 runtests: PYTHONHASHSEED='3431216340' py34 runtests: commands[0] | python -m unittest discover ........................................................................... .. ---------------------------------------------------------------------- Ran 77 tests in 0.525s OK _________________________________ summary _________________________________ py27: commands succeeded py33: commands succeeded py34: commands succeeded congratulations :)
You can also use the Python unittest
framework directly:
$ python -m unittest discover ........................................................................... .. ---------------------------------------------------------------------- Ran 77 tests in 0.537s OK