test_repeater, toggle_diff, ) from corehq.apps.repeaters.views import AddCaseRepeaterView, RepeatRecordView from corehq.apps.reports.dispatcher import DomainReportDispatcher urlpatterns = [ url(r'^domain/select/$', select, name='domain_select'), url(r'^domain/autocomplete/(?P<field>[\w-]+)/$', autocomplete_fields, name='domain_autocomplete_fields'), url(r'^domain/transfer/(?P<guid>\w+)/activate$', ActivateTransferDomainView.as_view(), name='activate_transfer_domain'), url(r'^domain/transfer/(?P<guid>\w+)/deactivate$', DeactivateTransferDomainView.as_view(), name='deactivate_transfer_domain'), url(r'^accounts/password_change/$', password_change, {'template_name': 'login_and_password/password_change_form.html'}, name='password_change'), url(r'^accounts/password_change_done/$', password_change_done, { 'template_name': 'login_and_password/password_change_done.html', 'extra_context': { 'current_page': { 'page_name': _('Password Change Complete') } } }, name='password_change_done'),
select, set_published_snapshot, test_repeater, toggle_diff, ) from corehq.motech.repeaters.views import AddCaseRepeaterView, RepeatRecordView from corehq.apps.reports.dispatcher import DomainReportDispatcher urlpatterns = [ url(r'^domain/select/$', select, name='domain_select'), url(r'^domain/autocomplete/(?P<field>[\w-]+)/$', autocomplete_fields, name='domain_autocomplete_fields'), url(r'^domain/transfer/(?P<guid>\w+)/activate$', ActivateTransferDomainView.as_view(), name='activate_transfer_domain'), url(r'^domain/transfer/(?P<guid>\w+)/deactivate$', DeactivateTransferDomainView.as_view(), name='deactivate_transfer_domain'), url(r'^accounts/password_change/$', password_change, {'template_name': 'login_and_password/password_change_form.html'}, name='password_change'), url(r'^accounts/password_change_done/$', password_change_done, {'template_name': 'login_and_password/password_change_done.html', 'extra_context': {'current_page': {'page_name': _('Password Change Complete')}}}, name='password_change_done'), url(r'^accounts/password_reset_email/$', password_reset, {'template_name': 'login_and_password/password_reset_form.html', 'password_reset_form': ConfidentialPasswordResetForm, 'from_email': settings.DEFAULT_FROM_EMAIL, 'extra_context': {'current_page': {'page_name': _('Password Reset')}}}, name='password_reset_email'), url(r'^accounts/password_reset_email/done/$', password_reset_done,
def auth_pages_path(page): return {'template_name':'login_and_password/' + page} def extend(d1, d2): return dict(d1.items() + d2.items()) urlpatterns =\ patterns('corehq.apps.domain.views', url(r'^domain/select/$', 'select', name='domain_select'), url(r'^domain/autocomplete/(?P<field>\w+)/$', 'autocomplete_fields', name='domain_autocomplete_fields'), url(r'^domain/incomplete_email/$', 'incomplete_email'), url(r'^domain/transfer/(?P<guid>\w+)/activate$', ActivateTransferDomainView.as_view(), name='activate_transfer_domain'), url(r'^domain/transfer/(?P<guid>\w+)/deactivate$', DeactivateTransferDomainView.as_view(), name='deactivate_transfer_domain'), ) +\ patterns('django.contrib.auth.views', url(r'^accounts/password_change/$', 'password_change', auth_pages_path('password_change_form.html'), name='password_change'), url(r'^accounts/password_change_done/$', 'password_change_done', auth_pages_path('password_change_done.html'), name='password_change_done'), url(r'^accounts/password_reset_email/$', exception_safe_password_reset, extend(auth_pages_path('password_reset_form.html'), { 'password_reset_form': ConfidentialPasswordResetForm, 'from_email':settings.DEFAULT_FROM_EMAIL}), name='password_reset_email'), url(r'^accounts/password_reset_email/done/$', 'password_reset_done', auth_pages_path('password_reset_done.html'), name='password_reset_done'), url(r'^accounts/password_reset_confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'password_reset_confirm', auth_pages_path('password_reset_confirm.html'), name="confirm_password_reset" ),