Closed ThomasWaldmann closed 4 years ago
Works with debug = True
, breaks with = False
.
[deleted]
Ah, wait, I misread – if the files are there, you'll have to deliver them to the browser. In development mode, pretalx does this for you, but in production mode, you'll have to deliver them via the web server of your choice, just like the static files.
[deleted]
Considering that it looks like a lot of people fall into that trap and that this somehow counteracts running with debug = False, maybe just pretalx should always serve these files?
One can still catch the request before it reaches pretalx to optimize then, but at least it does not break in mysterious ways if you don't.
As the minimum, there could be a comment in pretalx.cfg
right above debug = False
that this implicates media and static not being served by the python code.
As the minimum,
The documentation outlines how to serve static files in step 7 of the installation guide. If you think that additional hints are needed there, we'll happily take a look at your pull request.
does that ring any bells?
having that in 2 different installations now, done by 2 different admins.
in mine, i did a gunicorn based install into a virtual env.
the files are there in data/media and strace says that the python process does not even try to open them.
also, there are no permission issues, all stuff is owned by
pretalx
and has appropriate permissions.