fbf7d0e43d
* django templates * widgets * views * mppt * main_menu * projector 1.x api Sorted all imports Add a ending slash to each url with a redirect view
19 lines
428 B
Python
19 lines
428 B
Python
from django.conf.urls import patterns, url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^print/$',
|
|
views.AssignmentPDF.as_view(),
|
|
name='assignments_pdf'),
|
|
|
|
url(r'^(?P<pk>\d+)/print/$',
|
|
views.AssignmentPDF.as_view(),
|
|
name='assignments_single_pdf'),
|
|
|
|
url(r'^poll/(?P<poll_pk>\d+)/print/$',
|
|
views.AssignmentPollPDF.as_view(),
|
|
name='assignmentpoll_pdf'),
|
|
)
|