From 3283a5a6946564de6f4831de0eb6e90b916758a3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 22 May 2018 18:47:08 +0200 Subject: [PATCH] Add tinymce and quiz to deps and example --- example/settings.py | 24 +++++++++++++++++++----- requirements.txt | 2 ++ 2 files changed, 21 insertions(+), 5 deletions(-) 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 -- 2.39.5