From f582a06a4dcd03c180dfcc52c5bfcdbb900e4623 Mon Sep 17 00:00:00 2001 From: hrcerqueira Date: Thu, 4 Mar 2010 15:39:06 +0000 Subject: Very simple robots.txt module. A couple of typos on templates. --- .idea/workspace.xml | 256 ++++++++++++------------ cron/once_award_badges | 9 + forum/skins/default/templates/auth/signin.html | 2 +- forum/skins/default/templates/tag_selector.html | 2 +- forum_modules/robotstxt/__init__.py | 0 forum_modules/robotstxt/templates/robots.txt | 2 + forum_modules/robotstxt/urls.py | 6 + 7 files changed, 147 insertions(+), 130 deletions(-) create mode 100755 forum_modules/robotstxt/__init__.py create mode 100755 forum_modules/robotstxt/templates/robots.txt create mode 100755 forum_modules/robotstxt/urls.py diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 878a69f9..a17f2c4c 100755 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -22,8 +22,8 @@ - + @@ -34,9 +34,9 @@ - + @@ -48,9 +48,9 @@ - + @@ -59,10 +59,12 @@ + + @@ -76,9 +78,9 @@ - + @@ -96,8 +98,8 @@ - + @@ -105,8 +107,8 @@ - + @@ -120,8 +122,8 @@ - + @@ -133,17 +135,17 @@ - - + + - + @@ -152,18 +154,18 @@ - - + + - + @@ -174,15 +176,16 @@ - + - + + @@ -199,17 +202,18 @@ - + + - + - + @@ -230,19 +234,19 @@ - + - - + + @@ -250,12 +254,12 @@ - + - + @@ -263,13 +267,12 @@ - - + - + @@ -278,8 +281,8 @@ - + @@ -376,91 +379,46 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + @@ -476,11 +434,6 @@ @@ -550,6 +508,38 @@ - + @@ -978,7 +978,7 @@ - + @@ -1018,114 +1018,114 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/cron/once_award_badges b/cron/once_award_badges index 79d02f61..43ee2249 100755 --- a/cron/once_award_badges +++ b/cron/once_award_badges @@ -3,3 +3,12 @@ PYTHONPATH=/path/to/dir_above_osqa_site export PYTHONPATH PROJECT_ROOT=$PYTHONPATH/osqa_site python manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 + + +#!/bin/sh +PYTHONPATH=/usr/local/sites/osqa_production +export PYTHONPATH +PROJECT_ROOT=$PYTHONPATH/robofaqs +python $PROJECT_ROOT/manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 +python $PROJECT_ROOT/manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1 +python $PROJECT_ROOT/manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_email.log 2>&1 \ No newline at end of file diff --git a/forum/skins/default/templates/auth/signin.html b/forum/skins/default/templates/auth/signin.html index 8ae787fe..78e6c76d 100755 --- a/forum/skins/default/templates/auth/signin.html +++ b/forum/skins/default/templates/auth/signin.html @@ -31,7 +31,7 @@ {% if request.user.is_anonymous %}
- {% trans "Take the opurtunity to validate my email next to the external provider I choose." %} + {% trans "Take the oppurtunity to validate my email next to the external provider I choose." %}
{% endif %}
diff --git a/forum/skins/default/templates/tag_selector.html b/forum/skins/default/templates/tag_selector.html index 7686d717..5e3e2ad8 100755 --- a/forum/skins/default/templates/tag_selector.html +++ b/forum/skins/default/templates/tag_selector.html @@ -37,6 +37,6 @@

- +

diff --git a/forum_modules/robotstxt/__init__.py b/forum_modules/robotstxt/__init__.py new file mode 100755 index 00000000..e69de29b 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'}), +) -- cgit v1.2.3-1-g7c22