Commit f9d0c83f91706832a92d3c8cc17d31fbf89e6203
1 parent
cbd0b2d7
Exists in
master
and in
39 other branches
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,7 +49,7 @@ def index(request): | ||
49 | 49 | ||
50 | 50 | ||
51 | def robots(request): | 51 | def robots(request): |
52 | - if getattr(settings, 'ROBOTS_NOINDEX'): | 52 | + if getattr(settings, 'ROBOTS_NOINDEX', False): |
53 | return HttpResponse('User-agent: *\nDisallow: /', | 53 | return HttpResponse('User-agent: *\nDisallow: /', |
54 | content_type='text/plain') | 54 | content_type='text/plain') |
55 | 55 |