diff options
-rw-r--r-- | settings-sample.py | 6 | ||||
-rw-r--r-- | settings.py | 109 |
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 | |||
@@ -37,3 +37,3 @@ DATABASE_PORT = '' | |||
37 | SITE_ID = 1 | 37 | SITE_ID = 1 |
38 | USE_I18N = True | 38 | USE_I18N = False |
39 | 39 | ||
@@ -74,3 +74,3 @@ MIDDLEWARE_CLASSES = ( | |||
74 | 74 | ||
75 | ROOT_URLCONF = 'dicoweb.urls' | 75 | ROOT_URLCONF = 'gcide.urls' |
76 | 76 | ||
@@ -84,3 +84,3 @@ INSTALLED_APPS = ( | |||
84 | 'django.contrib.sites', | 84 | 'django.contrib.sites', |
85 | 'dicoweb', | 85 | 'gcide', |
86 | ) | 86 | ) |
diff --git a/settings.py b/settings.py deleted file mode 100644 index cc2c435..0000000 --- a/settings.py +++ /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 | |||
19 | import os | ||
20 | SITE_ROOT = os.path.dirname (os.path.realpath (__file__)) | ||
21 | |||
22 | DEBUG = False | ||
23 | TEMPLATE_DEBUG = False | ||
24 | |||
25 | ADMINS = ( | ||
26 | ('admin', 'root@gnu.org.ua'), | ||
27 | ) | ||
28 | MANAGERS = ADMINS | ||
29 | |||
30 | DATABASE_ENGINE = '' | ||
31 | DATABASE_NAME = '' | ||
32 | DATABASE_USER = '' | ||
33 | DATABASE_PASSWORD = '' | ||
34 | DATABASE_HOST = '' | ||
35 | DATABASE_PORT = '' | ||
36 | |||
37 | SITE_ID = 1 | ||
38 | USE_I18N = False | ||
39 | |||
40 | TIME_ZONE = 'Europe/Kiev' | ||
41 | LANGUAGE_CODE = 'en-us' | ||
42 | LANGUAGE_COOKIE_NAME = 'dicoweb_lang' | ||
43 | |||
44 | SESSION_COOKIE_NAME = 'dicoweb_sid' | ||
45 | SESSION_ENGINE = 'django.contrib.sessions.backends.file' | ||
46 | SESSION_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. | ||
53 | MEDIA_ROOT = os.path.join (SITE_ROOT, 'static') | ||
54 | |||
55 | # URL that handles the media served from MEDIA_ROOT. | ||
56 | MEDIA_URL = 'static' | ||
57 | |||
58 | # Make this unique, and don't share it with anybody. | ||
59 | SECRET_KEY = 'SET THIS TO A RANDOM STRING' | ||
60 | |||
61 | # List of callables that know how to import templates from various sources. | ||
62 | TEMPLATE_LOADERS = ( | ||
63 | 'django.template.loaders.filesystem.load_template_source', | ||
64 | 'django.template.loaders.app_directories.load_template_source', | ||
65 | ) | ||
66 | |||
67 | MIDDLEWARE_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 | |||
76 | ROOT_URLCONF = 'gcide.urls' | ||
77 | |||
78 | TEMPLATE_DIRS = ( | ||
79 | os.path.join (SITE_ROOT, 'templates'), | ||
80 | ) | ||
81 | |||
82 | INSTALLED_APPS = ( | ||
83 | 'django.contrib.contenttypes', | ||
84 | 'django.contrib.sessions', | ||
85 | 'django.contrib.sites', | ||
86 | 'gcide', | ||
87 | ) | ||
88 | |||
89 | DICT_SERVERS = ('127.0.0.1:12628',) | ||
90 | |||
91 | AUTH = {} | ||
92 | # AUTH = { '127.0.0.1:12628' : { 'user' : 'gcide', 'password' : 'pass' } } | ||
93 | |||
94 | DICT_TIMEOUT = 10 | ||
95 | |||
96 | GCIDE_VERSION = 0.51 | ||
97 | GCIDE_FTP = "ftp://download.gnu.org.ua/pub/gcide" | ||
98 | GCIDE_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' } ) | ||