update module

This commit is contained in:
Jonas Heinrich 2025-08-21 10:11:00 +02:00
parent 236e9e6438
commit 53eb0c8e81
3 changed files with 5 additions and 3 deletions

View file

@ -32,7 +32,9 @@ in
type = "normal";
chdir = "${pkgs.fragdenrat}/share/fragdenrat";
module = "fragdenrat.wsgi:application";
# Use absolute wsgi entrypoint to avoid module resolution issues
wsgi-file = "${pkgs.fragdenrat}/share/fragdenrat/fragdenrat/wsgi.py";
callable = "application";
socket = "${config.services.uwsgi.runDir}/fragdenrat.sock";
"chmod-socket" = "660";
@ -48,13 +50,13 @@ in
"no-orphans" = true;
env = [
# Ensure python sees the app and dependencies
"PYTHONPATH=${pkgs.fragdenrat}/share/fragdenrat:${pkgs.fragdenrat.pythonPath}"
"DJANGO_SETTINGS_MODULE=fragdenrat.settings"
];
settings = {
"static-map" = "/static=${pkgs.fragdenrat}/share/fragdenrat/assets";
# Ensure Python can import the project package
pythonpath = "${pkgs.fragdenrat}/share/fragdenrat";
};
};