From e387400b0eabebd248c9cb19622f1bcc605522a8 Mon Sep 17 00:00:00 2001 From: Bruno Sarlo Date: Mon, 20 Jul 2009 02:29:08 -0300 Subject: local settings --- settings_local.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 settings_local.py diff --git a/settings_local.py b/settings_local.py new file mode 100644 index 00000000..a5d13465 --- /dev/null +++ b/settings_local.py @@ -0,0 +1,21 @@ +# encoding:utf-8 +SITE_SRC_ROOT = '/change_me/' + +#for logging +import logging +LOG_FILENAME = SITE_SRC_ROOT + 'django.lanai.log' +logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,) + +DATABASE_NAME = 'cnprog' # Or path to database file if using sqlite3. +DATABASE_USER = 'root' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. + +MIDDLEWARE_CLASSES = ( + 'django.middleware.gzip.GZipMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.middleware.transaction.TransactionMiddleware', + #'debug_toolbar.middleware.DebugToolbarMiddleware', +) -- cgit v1.2.3-1-g7c22 From 12e4d9ab6dd90f21df3933613be9fab99d430f4b Mon Sep 17 00:00:00 2001 From: Bruno Sarlo Date: Mon, 20 Jul 2009 02:29:50 -0300 Subject: little templatetags translation modifications --- templates/badges.html | 12 ++++-------- templates/header.html | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/templates/badges.html b/templates/badges.html index 8a3b7eab..7fd1402a 100644 --- a/templates/badges.html +++ b/templates/badges.html @@ -18,8 +18,7 @@

- {% trans "Community gives you awards for your questions, answers and votes." %}
- {% trans "Below is the list of available badges and number of times each type of badge has been awarded." %} + {% trans "Community gives you awards for your questions, answers and votes. Below is the list of available badges and number of times each type of badge has been awarded." %}


@@ -52,9 +51,7 @@  {% trans "gold" %}

- {% trans "Gold badge is very rare." %} - {% trans "To obtain it you have to show profound knowledge and ability in addition to actively participating in the community." %} - {% trans "Gold badge is the highest award in this community." %} + {% trans "Gold badge is very rare. To obtain it you have to show profound knowledge and ability in addition to actively participating in the community. Gold badge is the highest award in this community." %}

 {% trans "silver" %}

- {% trans "Obtaining silver badge requires significant patience." %} - {% trans "If you got one, you've very significantly contributed to this community" %} + {% trans "Obtaining silver badge requires significant patience. If you got one, you've very significantly contributed to this community" %}

 {% trans "bronze" %}

- {% trans "If you are active in this community, you will will get this medal - still it is a special honor." %} + {% trans "If you are active in this community, you will get this medal - still it is a special honor." %}

diff --git a/templates/header.html b/templates/header.html index 0aa02886..fb07a4c0 100644 --- a/templates/header.html +++ b/templates/header.html @@ -5,9 +5,9 @@