diff options
author | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-04 15:39:06 +0000 |
---|---|---|
committer | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-04 15:39:06 +0000 |
commit | f582a06a4dcd03c180dfcc52c5bfcdbb900e4623 (patch) | |
tree | 628d7e7b911223e54c016c8f02744b78e3506115 /forum_modules/robotstxt | |
parent | 9a6943eed25b937cbb90d0e35f65e375e404d589 (diff) | |
download | askbot-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-x | forum_modules/robotstxt/__init__.py | 0 | ||||
-rwxr-xr-x | forum_modules/robotstxt/templates/robots.txt | 2 | ||||
-rwxr-xr-x | forum_modules/robotstxt/urls.py | 6 |
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'}),
+)
|