Skip to content

Commit

Permalink
Added robots.txt rule.
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Eraldo committed Dec 22, 2014
1 parent d4298fc commit a0aa679
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions colegend/configuration/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.http import HttpResponse

admin.autodiscover()


Expand Down Expand Up @@ -51,6 +53,8 @@
# django-autocomplet-light
url(r'^autocomplete/', include('autocomplete_light.urls')),

# robots.txt file for crawlers
(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", mimetype="text/plain")),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# remove group model from admin
Expand Down

0 comments on commit a0aa679

Please sign in to comment.