X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/84af66c57aecdff0312bff408a9084336fae3486..3333b0748fd76170f3b44bf9533b21889fa6685f:/wolnelektury/settings.py?ds=inline diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 04b5fd568..8b03f9c10 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -72,7 +72,7 @@ MIDDLEWARE_CLASSES = [ 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.middleware.doc.XViewMiddleware', + # 'django.middleware.doc.XViewMiddleware', 'pagination.middleware.PaginationMiddleware', ] @@ -80,10 +80,10 @@ MIDDLEWARE_CLASSES = [ if DEBUG: MIDDLEWARE_CLASSES.append('middleware.ProfileMiddleware') -ROOT_URLCONF = 'wolnelektury.urls' +ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ( - PROJECT_DIR + '/templates/' + PROJECT_DIR + '/templates/', ) # CSS and JS files to compress @@ -91,14 +91,26 @@ COMPRESS_CSS = { 'all': { 'source_filenames': ('css/master.css', 'css/jquery.autocomplete.css', 'css/master.plain.css',), 'output_filename': 'css/all.min.css', + }, + 'book': { + 'source_filenames': ('css/master.book.css',), + 'output_filename': 'css/book.min.css', } } COMPRESS_JS = { + 'jquery': { + 'source_filenames': ('js/jquery.js',), + 'output_filename': 'js/jquery.min.js', + }, 'all': { - 'source_filenames': ('js/jquery.js', 'js/jquery.autocolumn.js', 'js/jquery.autocomplete.js', - 'js/jquery.form.js', 'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',), + 'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js', + 'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',), 'output_filename': 'js/all.min.js', + }, + 'book': { + 'source_filenames': ('js/jquery.eventdelegation.js', 'js/jquery.scrollto.js', 'js/jquery.highlightfade.js', 'js/book.js',), + 'output_filename': 'js/book.min.js', } } @@ -114,6 +126,7 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', + 'django.contrib.admindocs', 'newtagging', 'pagination', 'chunks',