Skip to content

🎒 Django-based online technical training system with specification, membership details and training sessions.

License

Notifications You must be signed in to change notification settings

newtheatre/nt-training

Repository files navigation

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.

Key Idea

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.

Running locally

You will need:

  • Django 1.11.1
  • Python 3.6.1 (and Pip)
  • ǸPM (for Bootstrap 4, Sass and Compass)

Installation

Python Virtualenv

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.

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 python --version.

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/

Sass

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.

Help

The Django documentation is a good place to start, or just drop us an email - it@newtheatre.org.uk

About

🎒 Django-based online technical training system with specification, membership details and training sessions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published