]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/robotstxt/settings.py
OSQA-828, Support fullname to real_name mapping from OpenID providers
[osqa.git] / forum_modules / robotstxt / settings.py
index 2ca30085cc5f4f1f5faa91c8576cf84590ebbf1d..44d576aea5f29029884970cd4a91ed18854878b7 100644 (file)
@@ -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.