Welp, that’s embarrassing :-/ I moved things around to test with a fresh install, and didn’t move them back.
One more question: running the script from the commandline gives me no output at all, and (of course) nothing in the http logs. Should I expect output on stderr, or is there something else obvious I’m missing?
Thanks anyway for your quick reply!
(Think I’ve answered my own question there: errors from the passenger_wsgi script indeed turn up on stderr, but the import you spotted is only triggered from inside the wsgi handler, so it goes to the passenger log I don’t have access to. Oh well. At least I know it should be possible, so it’s just a question of eliminating my setup mistakes one by one until it works.)