1 from forum.settings.base import Setting, SettingSet
2 from django.forms.widgets import Textarea
3 from django.core.urlresolvers import reverse
4 from forum.settings import APP_URL
6 ROBOTS_SET = SettingSet('robots', 'Robots txt', "Set up the robots.txt file.", 3000)
8 ROBOTS_FILE = Setting('ROBOTS_FILE',
9 """Sitemap: %s/sitemap.xml
16 Disallow: /matching_tags
18 """ % APP_URL, ROBOTS_SET, dict(
19 label = "Robots.txt file",
21 The robots.txt file search engine spiders will see.
23 widget=Textarea(attrs={'rows': '20'})))