fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patched django-modeltranslation to work correctly with south. Removed a weird migrati...
[wolnelektury.git]
/
wolnelektury
/
settings.py
diff --git
a/wolnelektury/settings.py
b/wolnelektury/settings.py
index
ff979a6
..
d40fd55
100644
(file)
--- a/
wolnelektury/settings.py
+++ b/
wolnelektury/settings.py
@@
-5,6
+5,7
@@
PROJECT_DIR = path.abspath(path.dirname(__file__))
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DEBUG = False
TEMPLATE_DEBUG = DEBUG
+MAINTENANCE_MODE = False
ADMINS = [
# ('Your Name', 'your_email@domain.com'),
ADMINS = [
# ('Your Name', 'your_email@domain.com'),
@@
-33,13
+34,14
@@
LANGUAGE_CODE = 'pl'
gettext = lambda s: s
LANGUAGES = (
gettext = lambda s: s
LANGUAGES = (
+ ('pl', gettext('Polish')),
('de', gettext('German')),
('en', gettext('English')),
('de', gettext('German')),
('en', gettext('English')),
- ('pl', gettext('Polish')),
('lt', gettext('Lithuanian')),
('fr', gettext('French')),
('ru', gettext('Russian')),
('lt', gettext('Lithuanian')),
('fr', gettext('French')),
('ru', gettext('Russian')),
- ('es', gettext('Spain')),
+ ('es', gettext('Spanish')),
+ ('uk', gettext('Ukrainian')),
)
)
@@
-90,6
+92,8
@@
MIDDLEWARE_CLASSES = [
'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
'django.middleware.locale.LocaleMiddleware',
+
+ 'maintenancemode.middleware.MaintenanceModeMiddleware',
]
ROOT_URLCONF = 'wolnelektury.urls'
]
ROOT_URLCONF = 'wolnelektury.urls'
@@
-119,11
+123,13
@@
INSTALLED_APPS = [
'pagination',
'chunks',
'compress',
'pagination',
'chunks',
'compress',
+ 'modeltranslation',
'catalogue',
'lessons',
'piston',
'api',
'rosetta',
'catalogue',
'lessons',
'piston',
'api',
'rosetta',
+ 'infopages',
]
CACHE_BACKEND = 'locmem:///?max_entries=3000'
]
CACHE_BACKEND = 'locmem:///?max_entries=3000'
@@
-177,6
+183,8
@@
THUMBNAIL_PROCESSORS = (
'sponsors.processors.add_padding',
)
'sponsors.processors.add_padding',
)
+TRANSLATION_REGISTRY = "wolnelektury.translation"
+
# Load localsettings, if they exist
try:
from localsettings import *
# Load localsettings, if they exist
try:
from localsettings import *