#5727 (Move example photo files from xl to book)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
The photos should go to a directory that's not included in the source and not covered by Django's collectstatic. The demo fixture that loads these photos should check whether lino_book is installed and otherwise do silently nothing. It's probably better to serve library volume files via /media and not via /static.
Concepts sous-jacents
Commentaires
- 2 ans, 1 mois ago by Luc Saffre about #5727 (Move example photo files from xl to book) : I redesigned lino.utils.DEMO_DATA once more. It is just a constant in lino.utils, we don't need to have it configurable, fixtures just need to check whether it is None (which is the case when lino_book is not installed). The Maildir mailbox with our demo email messages is now also under this directo...
- 2 ans, 1 mois ago by Luc Saffre about #5727 (Move example photo files from xl to book) : The test suite passes. Last step before I can push my changes is to adapt the docs.
- 2 ans, 1 mois ago by Luc Saffre about #5727 (Move example photo files from xl to book) : Seems that this is causing an avalanche of rather internal changes regarding setttings.MEDIA_ROOT and SITE.media.root. I discovered at least one dead dog: : until now the Site class creates the media directory if it doesn't exist, but the initdb command removes it again.
- 2 ans, 1 mois ago by Luc Saffre about #5727 (Move example photo files from xl to book) : Created new Ticket #5727 (Move elbums example file from xl to book).