From 8267d667c2619c8670946c5ef6f89c2bb9f39cc4 Mon Sep 17 00:00:00 2001 From: Steven Mapes Date: Mon, 22 Feb 2021 09:51:20 +0000 Subject: [PATCH] Updated to be Django 2.0 through 4.0 compatible The urls.py file was still using the pre Django 2.0 url function rather than re_path. re_path became the new standard in 2.0 and the old url() method will be removed in Django 4.0 so it may as well be removed now to allow this package to keep working --- froala_editor/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/froala_editor/urls.py b/froala_editor/urls.py index 9190fd07..438ca399 100644 --- a/froala_editor/urls.py +++ b/froala_editor/urls.py @@ -1,7 +1,7 @@ -from django.conf.urls import url +from django.urls import re_path from froala_editor import views urlpatterns = [ - url(r'^image_upload/$', views.image_upload, name='froala_editor_image_upload'), - url(r'^file_upload/$', views.file_upload, name='froala_editor_file_upload'), + re_path(r'^image_upload/$', views.image_upload, name='froala_editor_image_upload'), + re_path(r'^file_upload/$', views.file_upload, name='froala_editor_file_upload'), ]