From e3140edfd4a566974fc9cc1e623c43dc06132c0b Mon Sep 17 00:00:00 2001 From: Eligiusz Kurzawa Date: Wed, 6 Jan 2021 19:07:42 +0100 Subject: [PATCH] 9# added urls --- jobportal/settings.py | 9 +++++++++ templates/base.html | 10 ++++++---- templates/users/login.html | 2 +- templates/users/user-register.html | 4 ++-- users/models.py | 21 +++++++++++++++++++-- 5 files changed, 37 insertions(+), 9 deletions(-) diff --git a/jobportal/settings.py b/jobportal/settings.py index 93420d4..4e241f7 100644 --- a/jobportal/settings.py +++ b/jobportal/settings.py @@ -39,6 +39,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'jobs', 'users', + 'ckeditor', ] AUTH_USER_MODEL = 'users.Account' @@ -136,3 +137,11 @@ MEDIA_URL = '/media/' LOGIN_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/users/login/' + +CKEDITOR_CONFIGS = { + 'default': { + 'toolbar': 'Basic', + 'height': 300, + 'width': 400, + }, +} diff --git a/templates/base.html b/templates/base.html index 2647d1a..fe141c8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -33,19 +33,21 @@