Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAKAHE_ROBOTS_TXT_DISALLOWED_USER_AGENTS not being applied #513

Closed
rcarmo opened this issue Feb 17, 2023 · 1 comment
Closed

TAKAHE_ROBOTS_TXT_DISALLOWED_USER_AGENTS not being applied #513

rcarmo opened this issue Feb 17, 2023 · 1 comment

Comments

@rcarmo
Copy link
Contributor

rcarmo commented Feb 17, 2023

I'm not sure if it's because of my hosting takahe under uWSGI, but no matter what I do I can't get /robots.txt to be updated with the contents of the environment variable:

$ set | grep ROB
TAKAHE_ROBOTS_TXT_DISALLOWED_USER_AGENTS='["AhrefsBot","SemrushBot","MJ12bot"]'

Edit: I'm doing python manage.py collectstatic --clear --noinput; python manage.py migrate as part of each update, and the template does not seem to be applied when regenerating /static/robots.txt

Has there been any relevant routing change since #478 was accepted?

@rcarmo
Copy link
Contributor Author

rcarmo commented Feb 17, 2023

Nevermind, I was being overly aggressive with nginx static mappings and forgot to reproduce the new exclusion.

@rcarmo rcarmo closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant