Here are a couple of approaches, which I think is what you are looking for:
<https://adamj.eu/tech/2020/02/10/robots-txt/> On Sat, Jun 18, 2022 at 6:25 PM Roy Smith <[email protected]> wrote: > I want to serve a robots.txt file from my django app (spt-tools). My > settings.py file has: > > STATIC_ROOT = f'{WWW_DIR}/static/' > > so when I run "manage.py collectstatic", robots.txt ends up in > $HOME/www/static/robots.txt. It needs to be one directory level up from > there. I can think of several ways to fix this, but most of them involve > adding additional steps to my install process, which I'd rather not have to > do. > > I'm curious how other people have approached this. > _______________________________________________ > Cloud mailing list -- [email protected] > List information: > https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/ > -- Jaime Crespo <http://wikimedia.org>
_______________________________________________ Cloud mailing list -- [email protected] List information: https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/
