Skip to content

Commit

Permalink
robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mammique committed Oct 20, 2014
1 parent c4cddc4 commit 734bb0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions settings.py
Expand Up @@ -185,6 +185,7 @@
'opst_plugins',
# 'haystack',
# 'cms_search',
# 'fixture_magic',
)

THUMBNAIL_PROCESSORS = (
Expand Down
2 changes: 2 additions & 0 deletions templates/robots.txt
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /search/
2 changes: 2 additions & 0 deletions urls.py
Expand Up @@ -2,6 +2,7 @@
from django.contrib import admin
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.simple import direct_to_template

# from cms.sitemaps import CMSSitemap

Expand All @@ -11,6 +12,7 @@
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/tagging/autocomplete', include('pagetags.urls')),
#url(r'^', include('opst_plugins.urls')),
(r'^robots\.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}),
url(r'^', include('cms.urls')),
)
urlpatterns += staticfiles_urlpatterns()
Expand Down

0 comments on commit 734bb0c

Please sign in to comment.