Nottingham New Theatre Technical Training
Django-based training system - contains a training specification, split into categories; full membership details; and details of individual training sessions.
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:
- Django 1.11.1
- Python 3.6.1 (and Pip)
- ǸPM (for Bootstrap 4, Sass and Compass)
Using your preferred mechanism, create a virtual Python environment. This could be with PyCharm or virtualenv. I used virtualenv, like so:
<dir> is a given directory; something like
Ensure the Python version is 3.5 (if it is not the default) by running
virtualenv <dir> --python=python3.5 or similar.
Activate the virtualenv
**Windows** <virtualenv_dir>/Scripts/activate.bat **Unix** source <virtualenv_dir>/bin/activate
At this point you can check the Python version by running
Install the requirements
cd <dir> pip install -r requirements.txt
Ubuntu-based users may also need to run
sudo apt install libpq-dev python3-dev
Run the server
python manage.py runserver
Pages can be browsed locally at http://localhost:8000/
Install npm with
And then use either
npm run css_compile
to compile, or
npm run css_watch
to recompile after every save of a Sass file.