nephila / django-ckeditor-filebrowser-filer

A django-filer based CKEditor filebrowser
BSD 3-Clause "New" or "Revised" License
24 stars 42 forks source link

URLs for Django >= 1.10 #24

Closed peca11 closed 7 years ago

peca11 commented 7 years ago

Could you change the urls.py so it can work on Django 1.10 ? From what i've seen you just have to do this:


from django.conf.urls import url
from .views import *

urlpatterns = [
    url(r'version/$', filer_version, name='filer_version'),
    url(r'setting/(?P<setting>\w+)/$', get_setting, name='get_setting'),
    url(r'url_reverse/$', url_reverse, name='js_url_reverse'),
    url(r'url_image/(?P<image_id>\d+)/$', url_image, name='url_image'),
    url(r'url_image/(?P<image_id>\d+)/(?P<thumb_options>\d+)/$', url_image, name='url_image'),
    url(r'url_image/(?P<image_id>\d+)/(?P<width>\d+)/(?P<height>\d+)/$', url_image, name='url_image'),
    url(r'serve/(?P<image_id>\d+)/$', serve_image, name='serve_image'),
    url(r'serve/(?P<image_id>\d+)/(?P<thumb_options>\d+)/$', serve_image, name='serve_image'),
    url(r'serve/(?P<image_id>\d+)/(?P<width>\d+)/(?P<height>\d+)/$', serve_image, name='serve_image'),
    url(r'thumbnail_options/$', thumbnail_options, name='thumbnail_options'),
]

Great plugin by the way!! Thanks