X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/98e12313596c58738fc7e3eeaccfde202b91ef2a..9f9a701d95ee0e7eb222fdffbfd5e67a9cb4fbb8:/wolnelektury/settings.py?ds=sidebyside diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 66f2f6ce3..8a82221b9 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -33,7 +33,7 @@ LANGUAGE_CODE = 'pl' gettext = lambda s: s -LANGUAGES = ( +LANGUAGES = tuple(sorted([ ('pl', gettext('Polish')), ('de', gettext('German')), ('en', gettext('English')), @@ -42,7 +42,7 @@ LANGUAGES = ( ('ru', gettext('Russian')), ('es', gettext('Spanish')), ('uk', gettext('Ukrainian')), -) +], key=lambda x: x[0])) SITE_ID = 1 @@ -138,7 +138,7 @@ CACHE_BACKEND = 'locmem:///?max_entries=3000' # CSS and JavaScript file groups COMPRESS_CSS = { 'all': { - 'source_filenames': ('css/master.css', 'css/jquery.autocomplete.css', 'css/jquery.countdown.css', 'css/master.plain.css', 'css/sponsors.css',), + 'source_filenames': ('css/master.css', 'css/jquery.autocomplete.css', 'css/jquery.countdown.css', 'css/master.plain.css', 'css/sponsors.css', 'css/facelist_2-0.css',), 'output_filename': 'css/all.min?.css', }, 'book': { @@ -153,13 +153,13 @@ COMPRESS_JS = { 'output_filename': 'js/jquery.min.js', }, 'all': { - 'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js', - 'js/jquery.countdown.js', 'js/jquery.countdown-pl.js', + 'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js', + 'js/jquery.countdown.js', 'js/jquery.countdown-pl.js', 'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js', 'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js', 'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js', 'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js', - 'js/jquery.cookie.js',), + ), 'output_filename': 'js/all?.min.js', }, 'book': { @@ -186,6 +186,9 @@ THUMBNAIL_PROCESSORS = ( TRANSLATION_REGISTRY = "wolnelektury.translation" +# limit number of filtering tags +MAX_TAG_LIST = 6 + # Load localsettings, if they exist try: from localsettings import *