added robots.txt
This commit is contained in:
parent
1995ebcd74
commit
1731ade037
4
itf/templates/robots.txt
Normal file
4
itf/templates/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Disallow: /erang/
|
||||
Disallow: /admin/
|
||||
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user