[Answered ]-Django render admin panel with markdown fields

0👍

I found a solution, the problem was the order of the urls:

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('my_app.urls')),
    path('markdownx/', include('markdownx.urls')),
]

the empty path should be at the very end:

urlpatterns = [
    path('admin/', admin.site.urls),
    path('markdownx/', include('markdownx.urls')),
    path('', include('my_app.urls')),
]

1👍

This code snippet;

urlpatterns = [
path('markdownx/', include('markdownx.urls')),]

tells Django that there is a urls.py file in the markdownx application and use that for further route resolution.

However, I do not believe that it is the case in your Django project.

Leave a comment