コード例 #1
0
    url(r'^assert/initial_page_data/$', assert_initial_page_data, name='assert_initial_page_data'),
    url(r'^search/$', quick_find, name="global_quick_find"),
    url(r'^searchDescription.xml$', osdd, name="osdd"),
    url(r'^messaging-pricing', PublicSMSRatesView.as_view(), name=PublicSMSRatesView.urlname),
    url(r'^alerts/$', MaintenanceAlertsView.as_view(), name=MaintenanceAlertsView.urlname),
    url(r'^create_alert/$', create_alert, name='create_alert'),
    url(r'^activate_alert/$', activate_alert, name='activate_alert'),
    url(r'^deactivate_alert/$', deactivate_alert, name='deactivate_alert'),
    url(r'^jserror/$', jserror, name='jserror'),
    url(r'^dropbox_upload/(?P<download_id>(?:dl-)?[0-9a-fA-Z]{25,32})/$', dropbox_upload,
        name='dropbox_upload'),
    url(r'^account/two_factor/$', TwoFactorProfileView.as_view(), name=TwoFactorProfileView.urlname),
    url(r'^account/two_factor/setup/$', TwoFactorSetupView.as_view(), name=TwoFactorSetupView.urlname),
    url(r'^account/two_factor/setup/complete/$', TwoFactorSetupCompleteView.as_view(), name=TwoFactorSetupCompleteView.urlname),
    url(r'^account/two_factor/backup/tokens/$', TwoFactorBackupTokensView.as_view(), name=TwoFactorBackupTokensView.urlname),
    url(r'^account/two_factor/disable/$', TwoFactorDisableView.as_view(), name=TwoFactorDisableView.urlname),
    url(r'^account/two_factor/backup/phone/register/$', TwoFactorPhoneSetupView.as_view(), name=TwoFactorPhoneSetupView.urlname),
    url(r'^account/two_factor/backup/phone/unregister/(?P<pk>\d+)/$', TwoFactorPhoneDeleteView.as_view(),
        name=TwoFactorPhoneDeleteView.urlname),
    url(r'', include((tf_urls + tf_twilio_urls, 'two_factor'), namespace='two_factor')),
    url(r'^account/two_factor/reset/$', TwoFactorResetView.as_view(), name=TwoFactorResetView.urlname),
    url(r'^hq/admin/session_details/$', SessionDetailsView.as_view(),
        name=SessionDetailsView.urlname),

]

domain_specific = [
    url(r'^$', redirect_to_default, name='domain_homepage'),
    url(r'^login/$', domain_login, name='domain_login'),
    url(r'^retreive_download/(?P<download_id>(?:dl-)?[0-9a-fA-Z]{25,32})/$',
        retrieve_download, {'template': 'hqwebapp/includes/file_download.html'},
コード例 #2
0
ファイル: urls.py プロジェクト: dimagi/commcare-hq
    url(r'^debug/notify/$', debug_notify, name='debug_notify'),
    url(r'^search/$', quick_find, name="global_quick_find"),
    url(r'^searchDescription.xml$', osdd, name="osdd"),
    url(r'^messaging-pricing', PublicSMSRatesView.as_view(), name=PublicSMSRatesView.urlname),
    url(r'^alerts/$', MaintenanceAlertsView.as_view(), name=MaintenanceAlertsView.urlname),
    url(r'^create_alert/$', create_alert, name='create_alert'),
    url(r'^activate_alert/$', activate_alert, name='activate_alert'),
    url(r'^deactivate_alert/$', deactivate_alert, name='deactivate_alert'),
    url(r'^jserror/$', jserror, name='jserror'),
    url(r'^dropbox_upload/(?P<download_id>(?:dl-)?[0-9a-fA-Z]{25,32})/$', dropbox_upload,
        name='dropbox_upload'),
    url(r'^account/two_factor/$', TwoFactorProfileView.as_view(), name=TwoFactorProfileView.urlname),
    url(r'^account/two_factor/setup/$', TwoFactorSetupView.as_view(), name=TwoFactorSetupView.urlname),
    url(r'^account/two_factor/setup/complete/$', TwoFactorSetupCompleteView.as_view(), name=TwoFactorSetupCompleteView.urlname),
    url(r'^account/two_factor/backup/tokens/$', TwoFactorBackupTokensView.as_view(), name=TwoFactorBackupTokensView.urlname),
    url(r'^account/two_factor/disable/$', TwoFactorDisableView.as_view(), name=TwoFactorDisableView.urlname),
    url(r'^account/two_factor/backup/phone/register/$', TwoFactorPhoneSetupView.as_view(), name=TwoFactorPhoneSetupView.urlname),
    url(r'^account/two_factor/backup/phone/unregister/(?P<pk>\d+)/$', TwoFactorPhoneDeleteView.as_view(),
        name=TwoFactorPhoneDeleteView.urlname),
    url(r'', include((tf_urls + tf_twilio_urls, 'two_factor'), namespace='two_factor')),
    url(r'^account/two_factor/reset/$', TwoFactorResetView.as_view(), name=TwoFactorResetView.urlname),
    url(r'^hq/admin/session_details/$', SessionDetailsView.as_view(),
        name=SessionDetailsView.urlname),

]

domain_specific = [
    url(r'^$', redirect_to_default, name='domain_homepage'),
    url(r'^login/$', domain_login, name='domain_login'),
    url(r'^retreive_download/(?P<download_id>(?:dl-)?[0-9a-fA-Z]{25,32})/$',
        retrieve_download, {'template': 'hqwebapp/includes/file_download.html'},
コード例 #3
0
ファイル: urls.py プロジェクト: taylordowns2000/commcare-hq
        dropbox_upload,
        name='dropbox_upload'),
    url(r'^account/two_factor/$',
        TwoFactorProfileView.as_view(),
        name=TwoFactorProfileView.urlname),
    url(r'^account/two_factor/setup/$',
        TwoFactorSetupView.as_view(),
        name=TwoFactorSetupView.urlname),
    url(r'^account/two_factor/setup/complete/$',
        TwoFactorSetupCompleteView.as_view(),
        name=TwoFactorSetupCompleteView.urlname),
    url(r'^account/two_factor/backup/tokens/$',
        TwoFactorBackupTokensView.as_view(),
        name=TwoFactorBackupTokensView.urlname),
    url(r'^account/two_factor/disable/$',
        TwoFactorDisableView.as_view(),
        name=TwoFactorDisableView.urlname),
    url(r'^account/two_factor/backup/phone/register/$',
        TwoFactorPhoneSetupView.as_view(),
        name=TwoFactorPhoneSetupView.urlname),
    url(
        r'',
        include((tf_urls + tf_twilio_urls, 'two_factor'),
                namespace='two_factor')),
    url(r'^account/two_factor/new_phone/$',
        NewPhoneView.as_view(),
        name=NewPhoneView.urlname),
    url(r'^hq/admin/session_details/$',
        SessionDetailsView.as_view(),
        name=SessionDetailsView.urlname),
]