Permalink
Browse files

robots.txt is a static file, bug 693522

  • Loading branch information...
davedash committed Oct 11, 2011
1 parent 71713f8 commit fee466e271a6eaee04fcefe84586ecdfa5e31d4f
Showing with 2 additions and 7 deletions.
  1. +0 −1 apps/landing/urls.py
  2. +0 −6 apps/landing/views.py
  3. +2 −0 media/robots.txt
View
@@ -7,7 +7,6 @@
urlpatterns = patterns('',
url('^$', views.home, name='home'),
- url('^robots.txt$', views.robots, name='robots.txt'),
url('^about$', views.about, name='about'),
url('^confirm_register$', views.confirm_register, name='confirm_register'),
)
View
@@ -11,11 +11,5 @@ def home(request):
return render(request, 'landing/home.html')
-# TODO: this should be served statically.
-def robots(request):
- return HttpResponse("""User-agent: *\nDisallow: /\n""",
- mimetype="text/plain")
-
-
def confirm_register(request):
return render(request, 'landing/confirm_register.html')
View
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

0 comments on commit fee466e

Please sign in to comment.