X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..fa657e16956d77027de1594980e27ffef3ff82c1:/forum_modules/robotstxt/settings.py diff --git a/forum_modules/robotstxt/settings.py b/forum_modules/robotstxt/settings.py index 2ca3008..44d576a 100644 --- a/forum_modules/robotstxt/settings.py +++ b/forum_modules/robotstxt/settings.py @@ -1,14 +1,21 @@ from forum.settings.base import Setting, SettingSet from django.forms.widgets import Textarea +from django.core.urlresolvers import reverse +from forum.settings import APP_URL ROBOTS_SET = SettingSet('robots', 'Robots txt', "Set up the robots.txt file.", 3000) ROBOTS_FILE = Setting('ROBOTS_FILE', -""" +"""Sitemap: %s/sitemap.xml + User-Agent: * Disallow: /accounts/ Disallow: /users/ -""", ROBOTS_SET, dict( +Disallow: /revisions/ +Disallow: /search +Disallow: /matching_tags +Disallow: /*sort= +""" % APP_URL, ROBOTS_SET, dict( label = "Robots.txt file", help_text = """ The robots.txt file search engine spiders will see.