**Ke**lder **R**egistratie **S**ysteem
Find a file
2020-07-25 13:04:54 +02:00
events Rewrite migrations 2020-07-25 12:15:18 +02:00
KeRS Fix error after variable name refactor 2020-07-25 13:03:47 +02:00
oauth Fix error after variable name refactor 2020-07-25 13:03:47 +02:00
scripts Format script 2020-07-25 12:25:20 +02:00
static Improve header layout 2020-07-25 01:32:44 +02:00
templates Oh no this is becoming too decent to be a Zeus project 2020-07-22 18:19:42 +02:00
users Correct length of student number in placeholder 2020-07-25 13:04:54 +02:00
.editorconfig Add editorconfig 2020-07-22 01:46:38 +02:00
.gitignore add initial models 2020-07-21 22:24:45 +02:00
docker-compose.yml Add script to wait for a service 2020-07-24 23:27:48 +02:00
Dockerfile Add specific versions for docker images 2020-07-24 22:40:38 +02:00
Makefile Superuser is created in the seed migration 2020-07-25 12:32:04 +02:00
manage.py Initial commit 2020-07-21 21:20:23 +02:00
README.md Add development environment docs in README 2020-07-25 12:40:57 +02:00
requirements.txt add django beat stuff 2020-07-22 04:22:05 +02:00

KeRS - Kelderregistratiesysteem

Development

Install Python and virtualenv if not already available.

Choose between:

  • SQLite3 (easier to set up, works because we don't do advanced DB shizzlery or custom SQL yet)
  • MySQL/MariaDB (used in production, less chance of weird bugs due to compatibility problems between SQLite3 and MariaDB)

If you choose SQLite3, set the environment variable KERS_DB_BACKEND to sqlite3. To do so, you can add export KERS_DB_BACKEND=sqlite3 to your shell's init file (e.g. ~/.bashrc) and restart your shell.

If you choose MySQL/MariaDB, set up the server, and look in KeRS/settings.py for the possible environment variables you can set (e.g. DATABASE_NAME).

Set up the development environment:

python -m virtualenv venv
venv/bin/pip install -r requirements
make migrate

To run the development server:

make