Commit f9d0c83f91706832a92d3c8cc17d31fbf89e6203

Authored by Sergio Oliveira
1 parent cbd0b2d7

Adding default option

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/home/views.py
... ... @@ -49,7 +49,7 @@ def index(request):
49 49  
50 50  
51 51 def robots(request):
52   - if getattr(settings, 'ROBOTS_NOINDEX'):
  52 + if getattr(settings, 'ROBOTS_NOINDEX', False):
53 53 return HttpResponse('User-agent: *\nDisallow: /',
54 54 content_type='text/plain')
55 55  
... ...