X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3517c7fa3ec165a2650799a8d821d21116789c3b..3c0f69b2b4d62eaeb05403edc7b4c171622edc9a:/project/settings.py diff --git a/project/settings.py b/project/settings.py index a4187068..22d9bdd2 100644 --- a/project/settings.py +++ b/project/settings.py @@ -75,6 +75,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'explorer.middleware.EditorSettingsMiddleware', 'django.middleware.doc.XViewMiddleware', ) @@ -114,8 +115,16 @@ INSTALLED_APPS = ( 'toolbar', ) -REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books' + +# REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books' IMAGE_DIR = 'images' +EDITOR_COOKIE_NAME = 'options' +EDITOR_DEFAULT_SETTINGS = { + 'panels': [ + {'name': 'htmleditor', 'ratio': 0.5}, + {'name': 'gallery', 'ratio': 0.5} + ], +} try: from localsettings import *