summaryrefslogtreecommitdiffstats
path: root/forum_modules/robotstxt
diff options
context:
space:
mode:
authorhrcerqueira <hrcerqueira@gmail.com>2010-03-04 15:39:06 +0000
committerhrcerqueira <hrcerqueira@gmail.com>2010-03-04 15:39:06 +0000
commitf582a06a4dcd03c180dfcc52c5bfcdbb900e4623 (patch)
tree628d7e7b911223e54c016c8f02744b78e3506115 /forum_modules/robotstxt
parent9a6943eed25b937cbb90d0e35f65e375e404d589 (diff)
downloadaskbot-f582a06a4dcd03c180dfcc52c5bfcdbb900e4623.tar.gz
askbot-f582a06a4dcd03c180dfcc52c5bfcdbb900e4623.tar.bz2
askbot-f582a06a4dcd03c180dfcc52c5bfcdbb900e4623.zip
Very simple robots.txt module.
A couple of typos on templates.
Diffstat (limited to 'forum_modules/robotstxt')
-rwxr-xr-xforum_modules/robotstxt/__init__.py0
-rwxr-xr-xforum_modules/robotstxt/templates/robots.txt2
-rwxr-xr-xforum_modules/robotstxt/urls.py6
3 files changed, 8 insertions, 0 deletions
diff --git a/forum_modules/robotstxt/__init__.py b/forum_modules/robotstxt/__init__.py
new file mode 100755
index 00000000..e69de29b
--- /dev/null
+++ b/forum_modules/robotstxt/__init__.py
diff --git a/forum_modules/robotstxt/templates/robots.txt b/forum_modules/robotstxt/templates/robots.txt
new file mode 100755
index 00000000..97d769f1
--- /dev/null
+++ b/forum_modules/robotstxt/templates/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: / \ No newline at end of file
diff --git a/forum_modules/robotstxt/urls.py b/forum_modules/robotstxt/urls.py
new file mode 100755
index 00000000..83915456
--- /dev/null
+++ b/forum_modules/robotstxt/urls.py
@@ -0,0 +1,6 @@
+from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
+
+urlpatterns = patterns('',
+ (r'^robots.txt$', direct_to_template, {'template': 'modules/robotsdennyall/robots.txt'}),
+)