Skip to content

Commit

Permalink
base.py: add variable to assign embed_provider url via admin
Browse files Browse the repository at this point in the history
  • Loading branch information
philli-m committed Jan 4, 2022
1 parent 93f6d59 commit 26c1044
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions meinberlin/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,11 @@
ACCOUNT_USERNAME_REQUIRED = True
SOCIALACCOUNT_AUTO_SIGNUP = False
SOCIALACCOUNT_EMAIL_VERIFICATION = 'none'
SOCIALACCOUNT_FORMS = {'signup': 'meinberlin.apps.users.forms.SocialTermsSignupForm'}
SOCIALACCOUNT_FORMS = {
'signup': 'meinberlin.apps.users.forms.SocialTermsSignupForm'}
SOCIALACCOUNT_QUERY_EMAIL = True
SESSION_COOKIE_SAMESITE = None # This is currently needed for servicekonto account connection
# This is currently needed for servicekonto account connection
SESSION_COOKIE_SAMESITE = None

LOGIN_URL = 'account_login'
LOGIN_REDIRECT_URL = '/'
Expand All @@ -307,6 +309,7 @@
CKEDITOR_UPLOAD_PATH = 'uploads/'
CKEDITOR_RESTRICT_BY_USER = 'username'
CKEDITOR_ALLOW_NONIMAGE_FILES = True
CKEDITOR_EMBED_PROVIDER = ''

CKEDITOR_CONFIGS = {
'default': {
Expand Down Expand Up @@ -347,6 +350,8 @@
],
'removePlugins': 'stylesheetparser',
'extraAllowedContent': 'iframe[*]; div[*]',
'embed_provider': CKEDITOR_EMBED_PROVIDER,

},
'video-editor': {
'width': '100%',
Expand All @@ -357,6 +362,7 @@
],
'removePlugins': 'stylesheetparser',
'extraAllowedContent': 'iframe[*]; div[*]',
'embed_provider': CKEDITOR_EMBED_PROVIDER,
}
}

Expand Down Expand Up @@ -540,4 +546,3 @@
'BLUEPRINTS': 'meinberlin.apps.dashboard.blueprints.blueprints'}

A4_ACTIONS_PHASE_ENDS_HOURS = 48

0 comments on commit 26c1044

Please sign in to comment.