The training site is a move from a paper training system to a digital one. It is extendable, and fully customisable through the Django admin interface.
Its use over a paper system is not only good for trees, but also serves to be accessible anywhere, by anyone; easier to update and manage, filter, or organise; and offers a higher level of authorisation.
Training is given to a person (or people) through training sessions, where another person is designated trainer. Anyone can be a trainer, but training sessions can only be added by authorised users.
You will need:
Using your preferred mechanism, create a virtual Python environment. This could be with PyCharm or virtualenv. I used virtualenv, like so:
virtualenv <dir>
Where <dir>
is a given directory; something like training
or venv
Ensure the Python version is 3.5 (if it is not the default) by running virtualenv <dir> --python=python3.5
or similar.
**Windows**
<virtualenv_dir>/Scripts/activate.bat
**Unix**
source <virtualenv_dir>/bin/activate
At this point you can check the Python version by running python --version
.
cd <dir>
pip install -r requirements.txt
Ubuntu-based users may also need to run sudo apt install libpq-dev python3-dev
python manage.py runserver
Pages can be browsed locally at http://localhost:8000/
Install npm with
npm install
And then use either
npm run css_compile
to compile, or
npm run css_watch
to recompile after every save of a Sass file.
The Django documentation is a good place to start, or just drop us an email - it@newtheatre.org.uk