From: Guillaume Pellerin Date: Tue, 22 May 2018 16:47:08 +0000 (+0200) Subject: Add tinymce and quiz to deps and example X-Git-Tag: 1.2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3283a5a6946564de6f4831de0eb6e90b916758a3;p=teleforma.git Add tinymce and quiz to deps and example --- diff --git a/example/settings.py b/example/settings.py index b840468a..57793c47 100644 --- a/example/settings.py +++ b/example/settings.py @@ -148,11 +148,16 @@ INSTALLED_APPS = ( 'timezones', 'jqchat', # 'follow', - 'googletools', - # 'telecaster', - 'extra_views', - 'captcha', - 'django_user_agents', + 'googletools', + # 'telecaster', + 'extra_views', + 'captcha', + 'django_user_agents', + 'tinymce', + 'multichoice', + 'true_false', + 'essay', + 'quiz', ) TEMPLATE_CONTEXT_PROCESSORS = ( @@ -231,3 +236,12 @@ CACHES = { # Name of cache backend to cache user agents. If it not specified default # cache alias will be used. Set to `None` to disable caching. USER_AGENTS_CACHE = 'default' + +AUTH_USER_MODEL = 'auth.User' + +TINYMCE_DEFAULT_CONFIG = { + 'plugins': "table,spellcheckerPeepOpenaste,searchreplace", + 'theme': "advanced", + 'cleanup_on_startup': True, + 'custom_undo_redo_levels': 10, +} diff --git a/requirements.txt b/requirements.txt index 080308b0..9a76a5b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,3 +17,5 @@ django-nvd3 django-user-agents xhtml2pdf html5lib==0.95 +django-tinymce==1.5.4 +django-quiz