# Path: privagal/gallery/views.py
# class GalleryDownloadView(PageLoginRequiredMixin, View):
# 
#     def get(self, request, pk):
#         gallery = get_object_or_404(Gallery, pk=pk)
#         return gallery.serve_download(request)


from django.conf.urls import url
from .views import GalleryDownloadView
# -*- coding: utf-8 -*-
from __future__ import unicode_literals



urlpatterns = [
    url(
        r'^(?P<pk>\d+)/download/$',

# Path: privagal/gallery/views.py
# class GalleryDownloadView(PageLoginRequiredMixin, View):
# 
#     def get(self, request, pk):
#         gallery = get_object_or_404(Gallery, pk=pk)
#         return gallery.serve_download(request)


# Path: privagal/gallery/urls.py
from django.conf.urls import url
from .views import GalleryDownloadView

# -*- coding: utf-8 -*-
from __future__ import unicode_literals



urlpatterns = [
    url(
        r'^(?P<pk>\d+)/download/$',

        GalleryDownloadView.as_view(),