""" URLConf for Django approvals app. Recommended usage is a call to ``include()`` in your project's root URLConf to include this URLConf for any URL beginning with `/approvals/`. """ from django.conf.urls.defaults import * from django.views.generic.list_detail import object_list from approvals.views import act_on_approval from approvals.decorators import is_staff from approvals.models import Approval ########################################################################### # urlpatterns = patterns( '', url(r'^(?P<object_id>\d+)/act_on/$', is_staff(act_on_approval), {'template_name': 'approvals/act_on_approval.html'}, name='approvals_act_on'), )
auth_views.password_reset, name='auth_password_reset'), url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', auth_views.password_reset_confirm, name='auth_password_reset_confirm'), url(r'^password/reset/complete/$', auth_views.password_reset_complete, name='auth_password_reset_complete'), url(r'^password/reset/done/$', auth_views.password_reset_done, name='auth_password_reset_done'), url(r'^register/$', register, {'form_class': RegistrationFormNeedsApproval}, name='registration_register'), url(r'^register/complete/$', direct_to_template, {'template': 'registration/registration_complete.html'}, name='registration_complete'), url(r'^approval/$', is_staff(object_list), { 'queryset': Approval.objects.filter(approved=None).filter( content_type__app_label='registration'), 'paginate_by': 20, 'template_name': 'registration/approvals_list.html' }, name='registration_approvals_list'), )
""" URLConf for Django approvals app. Recommended usage is a call to ``include()`` in your project's root URLConf to include this URLConf for any URL beginning with `/approvals/`. """ from django.conf.urls.defaults import * from django.views.generic.list_detail import object_list from approvals.views import act_on_approval from approvals.decorators import is_staff from approvals.models import Approval ########################################################################### # urlpatterns = patterns( '', url(r'^(?P<object_id>\d+)/act_on/$', is_staff(act_on_approval), { 'template_name': 'approvals/act_on_approval.html' }, name='approvals_act_on'), )
url(r'^password/change/done/$', auth_views.password_change_done, name='auth_password_change_done'), url(r'^password/reset/$', auth_views.password_reset, name='auth_password_reset'), url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', auth_views.password_reset_confirm, name='auth_password_reset_confirm'), url(r'^password/reset/complete/$', auth_views.password_reset_complete, name='auth_password_reset_complete'), url(r'^password/reset/done/$', auth_views.password_reset_done, name='auth_password_reset_done'), url(r'^register/$', register, {'form_class' : RegistrationFormNeedsApproval }, name='registration_register'), url(r'^register/complete/$', direct_to_template, {'template': 'registration/registration_complete.html'}, name='registration_complete'), url(r'^approval/$', is_staff(object_list), { 'queryset' : Approval.objects.filter(approved = None).filter(content_type__app_label = 'registration'), 'paginate_by' : 20, 'template_name' : 'registration/approvals_list.html'}, name = 'registration_approvals_list'), )