update homepage version to 2.2.0

This commit is contained in:
2025-10-23 18:54:05 +02:00
parent 8d4f899184
commit 094d7bed13
2 changed files with 159 additions and 159 deletions

304
Readme.md
View File

@@ -1,152 +1,152 @@
# Fet 2020 Django Project # Fet 2020 Django Project
Diese Webseite ist im Jahr 2020 entwickelt worden. Wir haben dazu einige Designentscheidungen getroffen: Diese Webseite ist im Jahr 2020 entwickelt worden. Wir haben dazu einige Designentscheidungen getroffen:
1. Zunächst auf die externen Kernfunktionen fokussieren 1. Zunächst auf die externen Kernfunktionen fokussieren
2. Python + Django nutzen weil: 2. Python + Django nutzen weil:
* wir Python mögen * wir Python mögen
* das Framework uns die Freiheit gibt, zB die Mitglieder Daten entsprechend abzubilden * das Framework uns die Freiheit gibt, zB die Mitglieder Daten entsprechend abzubilden
* das Design unabhängig von der Funktion bleibt * das Design unabhängig von der Funktion bleibt
* und einiges mehr * und einiges mehr
3. Als Kernfunktionen festgelegt wurden anfangs: 3. Als Kernfunktionen festgelegt wurden anfangs:
* Neuigkeiten posten * Neuigkeiten posten
* FET Sitzungen ankündigen * FET Sitzungen ankündigen
* Etherpad für Agenda und Protokoll * Etherpad für Agenda und Protokoll
* Informationen zu Mitgliedern anzeigen * Informationen zu Mitgliedern anzeigen
4. Unter dem Eindruck eines Jahres des Lockdown wurde zusätzlich hinzugefügt 4. Unter dem Eindruck eines Jahres des Lockdown wurde zusätzlich hinzugefügt
* Ein virtuelles Schwarzesbrett * Ein virtuelles Schwarzesbrett
## Development ## Development
The main branch is hosted on the FET git server. Clone the repository using the following command: The main branch is hosted on the FET git server. Clone the repository using the following command:
```bash ```bash
git clone https://git.fet.at/bofh/fet2020 git clone https://git.fet.at/bofh/fet2020
``` ```
## Debug ## Debug
If you are developing on Windows, install Visual Studio Code and Docker Desktop. If you are developing on Windows, install Visual Studio Code and Docker Desktop.
Add a local user/member for login because the project is not connected to FET LDAP in dev mode: Add a local user/member for login because the project is not connected to FET LDAP in dev mode:
```bash ```bash
python manage.py createsuperuser python manage.py createsuperuser
``` ```
### Python version ### Python version
View all python versions: View all python versions:
```bash ```bash
uv python list uv python list
``` ```
Installing Python executables: Installing Python executables:
```bash ```bash
uv python install $(.python-version) --default uv python install $(.python-version) --default
``` ```
Update the following files if the python version is increased: Update the following files if the python version is increased:
* .python-version * .python-version
* pyproject.toml * pyproject.toml
* run-pre-commit.sh * run-pre-commit.sh
## Deployment ## Deployment
### Docker image for django ### Docker image for django
Makemigrations: Makemigrations:
```bash ```bash
python fet2020/manage.py makemigrations blackboard core finance gallery members posts rental python fet2020/manage.py makemigrations blackboard core finance gallery members posts rental
``` ```
```bash ```bash
python fet2020/manage.py makemigrations intern python fet2020/manage.py makemigrations intern
``` ```
Add all static files to the assets: Add all static files to the assets:
```bash ```bash
python fet2020/manage.py collectstatic python fet2020/manage.py collectstatic
``` ```
Check if the project is for deployment: Check if the project is for deployment:
```bash ```bash
python fet2020/manage.py check --deploy python fet2020/manage.py check --deploy
``` ```
Build the docker image of django project: Build the docker image of django project:
```bash ```bash
docker build -t django-image -f fet2020/Dockerfile ./fet2020 docker build -t django-image -f fet2020/Dockerfile ./fet2020
``` ```
### Docker image for nginx ### Docker image for nginx
Build the docker image of nginx: Build the docker image of nginx:
```bash ```bash
docker build -t django-nginx-image -f nginx/Dockerfile ./nginx docker build -t django-nginx-image -f nginx/Dockerfile ./nginx
``` ```
### Start docker container ### Start docker container
Build the docker containers: Build the docker containers:
```bash ```bash
docker compose -f docker-compose.yml up -d docker compose -f docker-compose.yml up -d
``` ```
Remove all unused docker images older than 24 hours: Remove all unused docker images older than 24 hours:
```bash ```bash
docker image prune -a --filter "until=24h" docker image prune -a --filter "until=24h"
``` ```
## Other Useful Commands ## Other Useful Commands
Please use the command carefully! Remove all unused docker volumes: Please use the command carefully! Remove all unused docker volumes:
```bash ```bash
docker volume prune -a docker volume prune -a
``` ```
Rebuilds all search indexes: Rebuilds all search indexes:
```bash ```bash
python3 fet2020/manage.py rebuild_index python3 fet2020/manage.py rebuild_index
``` ```
Updates all search indexes: Updates all search indexes:
```bash ```bash
python3 fet2020/manage.py update_index python3 fet2020/manage.py update_index
``` ```
## TODO ## TODO
ckeditor -> django-prose-editor ckeditor -> django-prose-editor
## Version History ## Version History
Next 2.2.0
* Add rental * Add rental
2.1.0 2.1.0
* Add finance system * Add finance system
2.0.0 2.0.0
* Update the homepage design * Update the homepage design
* Add intern * Add intern
1.0.0 1.0.0
* First release of the new homepage * First release of the new homepage

View File

@@ -1,7 +1,7 @@
from django.utils.version import get_version from django.utils.version import get_version
VERSION = (1, 0, 0, "final", 0) VERSION = (2, 2, 0, "final", 0)
BUILD = 0 BUILD = 0
__version__ = get_version(VERSION) __version__ = get_version(VERSION)
build = BUILD build = BUILD