Run
git clone [email protected]:inyokaproject/theme-default.gitnext 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-defaultActivate source
source ~/.venvs/inyoka/bin/activateInstall as a development package:
python setup.py developRun
npm installto install GruntRun
./node_modules/grunt-cli/bin/grunt watchto 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_APPSininyoka/development_settings.py:INSTALLED_APPS = INSTALLED_APPS + ( 'inyoka_theme_default', )
- Run
pip install -U "git+ssh://[email protected]:inyokaproject/theme-default.git@staging#egg=inyoka-theme-default"
- Run
npm installto install Grunt - Run
./node_modules/grunt-cli/bin/gruntto build all static files - Run
manage.py collectstaticin your Django project
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