from django.conf.urls import url from . import views urlpatterns = [ url(r'^thumbnail/(?P\d+)/(?P[^/]+)/$', views.thumbnail, name='image-thumbnail'), ]