summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--settings-sample.py6
-rw-r--r--settings.py109
2 files changed, 3 insertions, 112 deletions
diff --git a/settings-sample.py b/settings-sample.py
index 9abc5b8..5aa1aec 100644
--- a/settings-sample.py
+++ b/settings-sample.py
@@ -35,7 +35,7 @@ DATABASE_HOST = ''
35DATABASE_PORT = '' 35DATABASE_PORT = ''
36 36
37SITE_ID = 1 37SITE_ID = 1
38USE_I18N = True 38USE_I18N = False
39 39
40TIME_ZONE = 'Europe/Warsaw' 40TIME_ZONE = 'Europe/Warsaw'
41LANGUAGE_CODE = 'en-us' 41LANGUAGE_CODE = 'en-us'
@@ -72,7 +72,7 @@ MIDDLEWARE_CLASSES = (
72 'django.middleware.cache.FetchFromCacheMiddleware', 72 'django.middleware.cache.FetchFromCacheMiddleware',
73) 73)
74 74
75ROOT_URLCONF = 'dicoweb.urls' 75ROOT_URLCONF = 'gcide.urls'
76 76
77TEMPLATE_DIRS = ( 77TEMPLATE_DIRS = (
78 os.path.join (SITE_ROOT, 'templates'), 78 os.path.join (SITE_ROOT, 'templates'),
@@ -82,7 +82,7 @@ INSTALLED_APPS = (
82 'django.contrib.contenttypes', 82 'django.contrib.contenttypes',
83 'django.contrib.sessions', 83 'django.contrib.sessions',
84 'django.contrib.sites', 84 'django.contrib.sites',
85 'dicoweb', 85 'gcide',
86) 86)
87 87
88DICT_SERVERS = ('gnu.org.ua',) 88DICT_SERVERS = ('gnu.org.ua',)
diff --git a/settings.py b/settings.py
deleted file mode 100644
index cc2c435..0000000
--- a/settings.py
+++ b/dev/null
@@ -1,109 +0,0 @@
1# Django settings for Dicoweb project.
2#
3# This file is part of GNU Dico.
4# Copyright (C) 2008-2010, 2012 Wojciech Polak
5#
6# GNU Dico is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3, or (at your option)
9# any later version.
10#
11# GNU Dico is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
18
19import os
20SITE_ROOT = os.path.dirname (os.path.realpath (__file__))
21
22DEBUG = False
23TEMPLATE_DEBUG = False
24
25ADMINS = (
26 ('admin', 'root@gnu.org.ua'),
27)
28MANAGERS = ADMINS
29
30DATABASE_ENGINE = ''
31DATABASE_NAME = ''
32DATABASE_USER = ''
33DATABASE_PASSWORD = ''
34DATABASE_HOST = ''
35DATABASE_PORT = ''
36
37SITE_ID = 1
38USE_I18N = False
39
40TIME_ZONE = 'Europe/Kiev'
41LANGUAGE_CODE = 'en-us'
42LANGUAGE_COOKIE_NAME = 'dicoweb_lang'
43
44SESSION_COOKIE_NAME = 'dicoweb_sid'
45SESSION_ENGINE = 'django.contrib.sessions.backends.file'
46SESSION_EXPIRE_AT_BROWSER_CLOSE = True
47
48# Caching, see http://docs.djangoproject.com/en/dev/topics/cache/#topics-cache
49#CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
50
51
52# Absolute path to the directory that holds media/static files.
53MEDIA_ROOT = os.path.join (SITE_ROOT, 'static')
54
55# URL that handles the media served from MEDIA_ROOT.
56MEDIA_URL = 'static'
57
58# Make this unique, and don't share it with anybody.
59SECRET_KEY = 'SET THIS TO A RANDOM STRING'
60
61# List of callables that know how to import templates from various sources.
62TEMPLATE_LOADERS = (
63 'django.template.loaders.filesystem.load_template_source',
64 'django.template.loaders.app_directories.load_template_source',
65)
66
67MIDDLEWARE_CLASSES = (
68 'django.middleware.cache.UpdateCacheMiddleware',
69 'django.contrib.sessions.middleware.SessionMiddleware',
70 'django.middleware.locale.LocaleMiddleware',
71 'django.middleware.gzip.GZipMiddleware',
72 'django.middleware.common.CommonMiddleware',
73 'django.middleware.cache.FetchFromCacheMiddleware',
74)
75
76ROOT_URLCONF = 'gcide.urls'
77
78TEMPLATE_DIRS = (
79 os.path.join (SITE_ROOT, 'templates'),
80)
81
82INSTALLED_APPS = (
83 'django.contrib.contenttypes',
84 'django.contrib.sessions',
85 'django.contrib.sites',
86 'gcide',
87)
88
89DICT_SERVERS = ('127.0.0.1:12628',)
90
91AUTH = {}
92# AUTH = { '127.0.0.1:12628' : { 'user' : 'gcide', 'password' : 'pass' } }
93
94DICT_TIMEOUT = 10
95
96GCIDE_VERSION = 0.51
97GCIDE_FTP = "ftp://download.gnu.org.ua/pub/gcide"
98GCIDE_DISTRIBUTIONS = ( {'ftp': GCIDE_FTP,
99 'archive': 'gcide-0.51-rc1.tar.gz',
100 'size': '18M',
101 'hash': 'c5e7215fa834eb1675c33a7621dea6ae'},
102 {'ftp': GCIDE_FTP,
103 'archive': 'gcide-0.51-rc1.tar.xz',
104 'size': '14M',
105 'hash': '4bd9b274a893b20b3950cdd5af1c27eb'},
106 {'ftp': GCIDE_FTP,
107 'archive': 'gcide-0.51-rc1.zip',
108 'size': '18M',
109 'hash': '5be7d356878d1d0cd12f6c75478a0004' } )

Return to:

Send suggestions and report system problems to the System administrator.