From adf059622873e14b9c656e5eccecdea5fe4e122c Mon Sep 17 00:00:00 2001 From: Christian Moser Date: Fri, 26 Dec 2025 20:11:31 +0100 Subject: [PATCH] 2025.12.26 20:11:31 (cachyos.cmoser.eu) --- pyproject.toml | 2 +- start-django.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9a19596..382ae27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic=["version","description","readme"] authors = [ {name = "Christian Moser",email = "christian@cmoser.eu"} ] -requires-python = ">=3.12,<3.14" +requires-python = ">=3.11,<3.14" dependencies = [ "django (>=5.2.4,<6.0.0)", "django-extensions (>=4.1,<5.0)", diff --git a/start-django.sh b/start-django.sh index 5a7c0ab..6375f6f 100755 --- a/start-django.sh +++ b/start-django.sh @@ -1,7 +1,10 @@ #!/bin/bash : ${UWSGI_BUFFER_SIZE:=32768} -: ${UWSGI_SOCKET_NAME:=uwsgi.sock} +: ${UWSGI_NAME:=uwsgi} +: ${UWSGI_SOCKET_NAME:=${UWSGI_NAME}.sock} +: ${UWSGI_LOG_NAME:=${UWSGI_NAME}.log} +: ${UWSGI_LOG:=/data/run/${UWSGI_LOG_NAME}} : ${UWSGI_SOCKET:=/data/run/${UWSGI_SOCKET_NAME}} : ${UWSGI_PIDFILE_NAME:=uwsgi.pid} : ${UWSGI_PIDFILE:=/data/run/${UWSGI_SOCKET_NAME}} @@ -49,7 +52,8 @@ if [ $# -eq 0 -o "$1" = "start" ]; then --buffer-size $UWSGI_BUFFER_SIZE \ --vacuum \ --venv "$venv" \ - --home "$venv" + --home "$venv" \ + --logto "$UWSGI_LOG" rc=$? if [ $rc -ne 0 ]; then echo "UWSGI Server not started" >&2