I have placed ROBOTS_NO_FOLLOW = True in
mysite/settings.py
I have added data['robots_no_follow'] =
msyite.settings.ROBOTS_NO_FOLLOW
into decorators.py under...
def as_view(request, template, data, slug):
which passes this successfully onto base.html so I can check it with
{% if robots_no_follow %}
<meta name="robots" content="noindex, nofollow" />
{% endif %}
I can succesfully turn it on / off with settings.py but I want to turn
this off when deployment_settings.py overrides it, ie:
ROBOTS_NO_FOLLOW = False.
The reason we are trying to change this is because others are putting
openhatch.org development sites
online and they are showing up in the google search results.
I hope you can help, as I'm a bit stuck.
Paul
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment