Skip to content

Gunnerus/gunnerus

Repository files navigation

Reserver

Python, Django and SQLite-based cruise reservation system.

Django CI

The server branch is protected from pushing, you need to make a pull request to update the server. Admins can approve their own pull requests, this is mostly a protection to prevent accidental updates of the production server and for documenting what's changed since the last update. Please include a short note with what's changed since the last server update in your pull request.

Issues

Structure

  • The "reserver" app is intended to encapsulate the main functionality of the reservation system.

Installation notes

  • Typical dev setup:
    • Working directory with two folders, "env" and "gunnerus"
    • "gunnerus" folder contains this repository
    • "env" contains a virtual Python 3.6 environment
    • Set up using...
      • virtualenv --python=python3.6 env
      • env\Scripts\activate
      • pip install -r requirements.txt
    • Run using "python manage.py runserver" as usual
    • Use "deactivate" to stop using the virtual environment when you're done
    • If you run into issues with database tables not being created on the initial run of the server, use migrate --run-syncdb.
  • To use the systemd config file reserver.service you need to:
    • Update the paths to match your installation of Reserver using your favorite text editor (e.g. "nano reserver.service")
    • cp reserver.service /etc/systemd/system
    • sudo systemctl enable reserver