from django.urls import path from .views import AdminGenerateVoucherView, DownloadVoucherView app_name = "voucher" urlpatterns = [ path('generate/', AdminGenerateVoucherView.as_view(), name="generate"), path('download//', DownloadVoucherView.as_view(), name="download"), ]