From b9e0435a4396cc3a708b6c4dadfada6d5c570b58 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 7 Jun 2019 16:01:08 +0530 Subject: [PATCH] Support django 1.11 --- nicedit/urls.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nicedit/urls.py b/nicedit/urls.py index 4c40177..1294f89 100644 --- a/nicedit/urls.py +++ b/nicedit/urls.py @@ -1,10 +1,9 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url +from .views import upload -__all__ = ('urlpatterns',) -urlpatterns = patterns( - 'nicedit.views', - url(r'^upload/$', 'upload', name='nicedit_upload'), -) +urlpatterns = [ + url(r'^upload/$', upload, name='nicedit_upload'), +]