django-summernote icon indicating copy to clipboard operation
django-summernote copied to clipboard

Summernote Does Not Work With app_name set in urls.py

Open kono10 opened this issue 3 years ago • 0 comments

    1 from . import views
~   2 from django.conf import settings
+   3 from django.urls import path, include
+   4 from django.conf.urls.static import static
+   5
    6
    7 app_name = "blog"
    8 urlpatterns = [
    9     path('', views.PostList.as_view(), name='home'),
   10     path('<slug:slug>/', views.post_detail, name='post_detail'),
+  11     path('summernote/', include('django_summernote.urls')),
   12 ]
+  13
+  14 if settings.DEBUG:
+  15     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
~

Heres the error Screen Shot 2022-04-10 at 2 07 26 PM

kono10 avatar Apr 10 '22 19:04 kono10