summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aloha/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/aloha/urls.py b/aloha/urls.py
index a00d57e..f93b16b 100644
--- a/aloha/urls.py
+++ b/aloha/urls.py
@@ -2,6 +2,7 @@ from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.conf.urls.static import static
from django.views.generic.simple import direct_to_template
+from django.http import HttpResponse
from django.contrib import admin
@@ -10,6 +11,7 @@ admin.autodiscover()
urlpatterns = patterns('',
url(r'^allotter/', include('allotter.urls')),
url(r'^browser-version', direct_to_template, {'template': 'browser-version.html'}),
+ url(r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", mimetype="text/plain")),
# Examples:
# url(r'^$', 'aloha.views.home', name='home'),
# url(r'^aloha/', include('aloha.foo.urls')),