No description
Find a file
2026-07-07 16:16:31 +02:00
.devcontainer Refactor models and remove some unused things, add resource groups th… (#116) 2025-12-07 18:07:24 +01:00
.github/workflows Build docker image when tag is pushed 2022-12-12 15:40:18 +01:00
.settings Fix group size hint calculation 2019-01-03 14:27:09 +01:00
exchange Upgrade views to Django 4.1 2022-12-12 22:26:05 +01:00
frinajave Add isort and apply it to the codebase 2022-12-02 11:29:25 +01:00
friprosveta Fix OIDC username claim handling 2026-07-07 16:16:31 +02:00
timetable Add resource archiving 2026-07-07 10:06:05 +02:00
unitime Reformat code using black formatter 2022-12-02 11:15:57 +01:00
urnik_fri Add OIDC Auth, fix teacher sync errors, update CGP, Make trade styling more obvious 2026-04-07 15:38:36 +02:00
.gitignore Refactor models and remove some unused things, add resource groups th… (#116) 2025-12-07 18:07:24 +01:00
.project Fix group size hint calculation 2019-01-03 14:27:09 +01:00
.pydevproject Fix group size hint calculation 2019-01-03 14:27:09 +01:00
.python-version Refactor models and remove some unused things, add resource groups th… (#116) 2025-12-07 18:07:24 +01:00
compose-development.yaml Fix compose for selinux compatibility and add curl 2026-07-02 23:33:40 +02:00
compose-production.yml Update docker-compose files 2022-12-12 21:56:12 +01:00
compose-test.yml Update docker-compose files 2022-12-12 21:56:12 +01:00
Dockerfile Fix compose for selinux compatibility and add curl 2026-07-02 23:33:40 +02:00
manage.py Initial commit 2017-11-30 17:58:32 +01:00
messages.mo ADd OIDC support and fix sync teachers 2026-04-07 15:38:36 +02:00
pyproject.toml Add OIDC Auth, fix teacher sync errors, update CGP, Make trade styling more obvious 2026-04-07 15:38:36 +02:00
README.md Fix group size hint calculation 2019-01-03 14:27:09 +01:00
requirements_development.txt Add isort and apply it to the codebase 2022-12-02 11:29:25 +01:00
requirements_production.txt Add OIDC Auth, fix teacher sync errors, update CGP, Make trade styling more obvious 2026-04-07 15:38:36 +02:00
uv.lock Add OIDC Auth, fix teacher sync errors, update CGP, Make trade styling more obvious 2026-04-07 15:38:36 +02:00
wait-for-it.sh Testing test :) 2018-09-30 00:25:30 +02:00

UL FRI timetabling system

Timetabling system is a web application written in Django. The main entry point is the application urnik_fri which also contains settings module.

The sample settings are separated into two parts: common and computer specific. New deployments should take settings-example.py as template and customize it.

All the necessary python dependencies are listed inside requirements_development.txt and requirements_production.txt. Currently they are basically the same except versions are pinned in the requirements_production.txt. The current production image is actually built from requirements_development.txt so we recommend to use that one.

The system dependencies can be read from the Dockerfile.

Developers

Timetabling system can be easily run under any linux system. Just install necessary dependencies (python and system one) and run it as any other python application.

However, in order to ensure that all development environments are the same we recommend to use Docker.

Using Docker

In Dockerfile there are instructions on how to build a Docker image from this repository. To run it we recommend running docker-compose agains the docker-compose-development.yml which runs the database and UWSGI server and sets some environmental variables.

To run it execute

docker-compose -f docker-compose-development.yml up

The command will start two docker containers: one running postgresql database and one running uwsgi server serving urnik.

The uwsgi server is by default exposed on the port 8080 on the host and the current source code is mouted inside folder /home/timetable/urnik inside UWSGI container. The UWSGI is set to restart on code changes to make development easier.

Before system is operational the database and superuser must be created using standard Django management commands. The easiest way to run management commands in it is to attach to the running docker container using command similar to the one bellow.

docker exec -it ${DOCKER_CONTAINER_ID} /bin/bash