Ejemplo n.º 1
0
 def test_create_rules_for_profiles(self):
     rules = create_rules('url_robots.tests.urls')
     self.assertEqual(rules, self.expected_rules)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def test_create_rules_for_profiles(self):
     rules = create_rules('url_robots.tests.urls')
     self.assertEqual(rules, self.expected_rules)