1. uniqx
  2. freieit


ghorvath  committed bba37a5

add robots.txt

  • Participants
  • Parent commits abccf83
  • Branches default

Comments (0)

Files changed (1)

File freieit/urls.py

View file
  • Ignore whitespace
 from registration.forms import RegistrationFormTermsOfService
 from django.views.generic.simple import direct_to_template
 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+from django.http import HttpResponse
 from views.home import IndexSearchView
 # from haystack.forms import SearchForm
 from forms.search import ExpertSearchForm
     url(r'^admin/',                 include(admin.site.urls)),
     # Uncomment the admin/doc line below to enable admin documentation:
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
+    (r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", mimetype="text/plain"))
 urlpatterns += patterns('',