serve robots.txt with mimetype = text/plain

This commit is contained in:
sanj 2010-08-05 01:26:53 +05:30
parent a3646f40fb
commit b4e8dd665a

View File

@ -13,7 +13,7 @@ urlpatterns = patterns('',
# Example:
# (r'^bhangar/', include('bhangar.foo.urls')),
#(r'^search/', include('solango.urls')),
(r'^robots.txt$', direct_to_template, {'template': 'robots.txt'}),
(r'^robots.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}),
(r'^erang/', include('erang_organised.urls')),
(r'^itf/$', 'festival.views.home'),
(r'^itf/wireframe', 'festival.views.wireframe'),