Skip to content

Commit 6df8ae3

Browse files
committed
Fix: Crashed if STATIC_URL is not set
1 parent 7db730b commit 6df8ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangocms_text/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def get_global_settings(self, language):
235235
return {
236236
"add_plugin_url": admin_reverse(cms_placeholder_add_plugin),
237237
"url_endpoint": self.url_endpoint or get_url_endpoint(),
238-
"static_url": settings.STATIC_URL + "djangocms_text",
238+
"static_url": settings.STATIC_URL + "djangocms_text" if settings.STATIC_URL else "",
239239
"lang": toolbar_setting,
240240
"lang_alt": {
241241
"toolbar": gettext("CMS Plugins"),

0 commit comments

Comments
 (0)