We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54b30ae + 48d42da commit e50c63eCopy full SHA for e50c63e
django_editorjs_fields/config.py
@@ -1,6 +1,7 @@
1
from secrets import token_urlsafe
2
3
from django.conf import settings
4
+from django.urls import reverse_lazy
5
6
DEBUG = getattr(settings, "DEBUG", False)
7
@@ -44,7 +45,7 @@
44
45
'Image': {
46
'class': 'ImageTool',
47
'inlineToolbar': True,
- "config": {"endpoints": {"byFile": "/editorjs/image_upload/"}},
48
+ "config": {"endpoints": {"byFile": reverse_lazy('editorjs_image_upload')}},
49
},
50
'Header': {
51
'class': 'Header',
0 commit comments