added robots.txt

This commit is contained in:
sanj 2010-08-03 03:36:25 +05:30
parent 1995ebcd74
commit 1731ade037
2 changed files with 8 additions and 1 deletions

4
itf/templates/robots.txt Normal file
View File

@ -0,0 +1,4 @@
User-agent: *
Disallow: /erang/
Disallow: /admin/

View File

@ -2,7 +2,7 @@ from django.conf.urls.defaults import *
import settings
import os
from os.path import join
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
@ -13,6 +13,9 @@ urlpatterns = patterns('',
# Example:
# (r'^bhangar/', include('bhangar.foo.urls')),
#(r'^search/', include('solango.urls')),
(r'^robots.txt$', direct_to_template({
'template': 'robots.txt'
})
(r'^erang/', include('erang_organised.urls')),
(r'^itf/$', 'festival.views.home'),
(r'^itf/wireframe', 'festival.views.wireframe'),