from __future__ import absolute_import

from django.conf.urls import url
from django.urls import path
from django.contrib.admin.views.decorators import staff_member_required
from django.views.decorators.cache import never_cache

from . import views

urlpatterns = [
        url(r'^upload/', views.upload, name='ckeditor_upload'),
        url(r'^browse/', never_cache(views.browse), name='ckeditor_browse'),
]


# urlpatterns = [
#     path("ckeditor/upload/", staff_member_required(views.upload), name="ckeditor_upload"),
#     path(
#         "ckeditor/browse/",
#         never_cache(staff_member_required(views.browse)),
#         name="ckeditor_browse",
#     ),
# ]
