diff --git a/fragdenrat/__pycache__/settings.cpython-312.pyc b/fragdenrat/__pycache__/settings.cpython-312.pyc index 7a03085..b3ae2f5 100644 Binary files a/fragdenrat/__pycache__/settings.cpython-312.pyc and b/fragdenrat/__pycache__/settings.cpython-312.pyc differ diff --git a/module.nix b/module.nix index 3638187..390bfaa 100644 --- a/module.nix +++ b/module.nix @@ -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"; }; }; diff --git a/result b/result index 546c4ee..8440bcc 120000 --- a/result +++ b/result @@ -1 +1 @@ -/nix/store/b3qlvljb17hp4l9sadavr2krspycik4g-fragify-0.0.1 \ No newline at end of file +/nix/store/wqsr5qqw8lj49hrags3pzairq70fwwb6-fragdenrat-0.1.0 \ No newline at end of file