Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
/ ts-training Public archive
forked from newtheatre/nt-training

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

License

Notifications You must be signed in to change notification settings

yorktechsoc/ts-training

 
 

Repository files navigation

York Technical Theatre Society 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.

Creating Menu Items

In order to create items in the Menu you'll need to make a new Page Icon type in the Admin Settings. This will add it to the menu bar at the top of the page.

Running locally

You will need:

  • Django 1.11.17
  • Python 3.6.1 (and Pip)
  • Ruby and Rubygems (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

Once Rubygems is installed, run:

gem install bundler
bundle install 

to install the relevant gems.

To compile the Sass, navigate to

/static/nt_training/static/ directory and run:

compass compile --force

Or

compass watch

to recompile after every save of a Sass file.

Help

The Django documentation is a good place to start.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 88.3%
  • JavaScript 6.1%
  • Python 3.0%
  • HTML 2.4%
  • Ruby 0.2%