示例#1
0
 def test_create_rules_for_profiles(self):
     rules = create_rules('url_robots.tests.urls')
     self.assertEqual(rules, self.expected_rules)
示例#2
0
def robots_txt(request, template='robots.txt'):
    rules = create_rules()
    content_type = 'text/plain; charset=utf-8'

    return render(request, template, {'rules': rules}, content_type=content_type)
示例#3
0
 def test_create_rules_for_profiles(self):
     rules = create_rules('url_robots.tests.urls')
     self.assertEqual(rules, self.expected_rules)