On Mar 2, 2011, at 10:24 PM, Johann Spies wrote:
> No. It is a production server so I do not want to experiment a lot. When I
> remove routes.py the server serves the pictures in the subdirectory
> /static/images/ but when I use routes.py the images have to be in /static.
> So I just moved them to static.
Do you have any URL calls with 'static/images' in them? (That is, in the
non-working case.) Under some circumstances they won't work, in particular when
there's a hyphen or underscore in the filename.
The fix (until the next version, anyway) is to change calls like
URL('static/image', 'file') to URL('static', 'image/file'). The reason is that
'static' is treated as the name of the controller directory, and 'static/image'
isn't recognized in the current version.