aboutsummaryrefslogtreecommitdiff
path: root/dicoweb/settings-sample.py
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-05-23 18:30:08 +0200
committerWojciech Polak <polak@gnu.org>2010-05-23 18:30:08 +0200
commit96770e6e7026ccb54c53c904bb9a3e37102098db (patch)
tree88c0547d4df524446d737926a64e36edad33ae63 /dicoweb/settings-sample.py
parent603ded11428876f39f872767bfb78e40dcc14491 (diff)
downloaddico-96770e6e7026ccb54c53c904bb9a3e37102098db.tar.gz
dico-96770e6e7026ccb54c53c904bb9a3e37102098db.tar.bz2
Minor Dicoweb changes.
* dicoweb/settings.py: Rename to settings-sample.py * dicoweb/static/dicoweb.js: Bugfix. * dicoweb/static/dicoweb.css: Minor changes. * dicoweb/templates/base.html: Likewise. * dicoweb/templates/index.html: Likewise.
Diffstat (limited to 'dicoweb/settings-sample.py')
-rw-r--r--dicoweb/settings-sample.py85
1 files changed, 85 insertions, 0 deletions
diff --git a/dicoweb/settings-sample.py b/dicoweb/settings-sample.py
new file mode 100644
index 0000000..aeb8a8c
--- /dev/null
+++ b/dicoweb/settings-sample.py
@@ -0,0 +1,85 @@
+# Django settings for Dicoweb project.
+#
+# This file is part of GNU Dico.
+# Copyright (C) 2008, 2009 Wojciech Polak
+#
+# GNU Dico is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Dico is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
+
+import os
+SITE_ROOT = os.path.dirname (os.path.realpath (__file__))
+
+DEBUG = True
+TEMPLATE_DEBUG = True
+
+ADMINS = (
+ ('Your Name', 'Your e-mail address'),
+)
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = ''
+DATABASE_NAME = ''
+DATABASE_USER = ''
+DATABASE_PASSWORD = ''
+DATABASE_HOST = ''
+DATABASE_PORT = ''
+
+SITE_ID = 1
+USE_I18N = True
+
+TIME_ZONE = 'Europe/Warsaw'
+LANGUAGE_CODE = 'en-us'
+LANGUAGE_COOKIE_NAME = 'dicoweb_lang'
+
+SESSION_COOKIE_NAME = 'dicoweb_sid'
+SESSION_ENGINE = 'django.contrib.sessions.backends.file'
+SESSION_EXPIRE_AT_BROWSER_CLOSE = True
+
+# Absolute path to the directory that holds media/static files.
+MEDIA_ROOT = os.path.join (SITE_ROOT, 'static')
+
+# URL that handles the media served from MEDIA_ROOT.
+MEDIA_URL = 'static'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = 'SET THIS TO A RANDOM STRING'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+ 'django.template.loaders.filesystem.load_template_source',
+ 'django.template.loaders.app_directories.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.locale.LocaleMiddleware',
+ 'django.middleware.gzip.GZipMiddleware',
+)
+
+ROOT_URLCONF = 'dicoweb.urls'
+
+TEMPLATE_DIRS = (
+ os.path.join (SITE_ROOT, 'templates'),
+)
+
+INSTALLED_APPS = (
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.sites',
+ 'dicoweb',
+)
+
+DICT_SERVERS = ('gnu.org.ua',)
+DICT_TIMEOUT = 10
+MEMCACHE_SERVERS = ('127.0.0.1:11211',)

Return to:

Send suggestions and report system problems to the System administrator.