Example #1
0
    AdminRestoreView,
    AuthenticateAs,
    DisableTwoFactorView,
    DisableUserView,
    SuperuserManagement,
    WebUserDataView,
    web_user_lookup,
)

from corehq.apps.reports.dispatcher import AdminReportDispatcher

from corehq.apps.api.urls import admin_urlpatterns as admin_api_urlpatterns

urlpatterns = [
    url(r'^$', default, name="default_admin_report"),
    url(r'^system/$', SystemInfoView.as_view(), name=SystemInfoView.urlname),
    url(r'^system/recent_changes/$',
        RecentCouchChangesView.as_view(),
        name=RecentCouchChangesView.urlname),
    url(r'^system/recent_changes/download/$',
        download_recent_changes,
        name="download_recent_changes"),
    url(r'^system/system_ajax$', system_ajax, name="system_ajax"),
    url(r'^system/check_services$', check_services, name="check_services"),
    url(r'^system/autostaging/$',
        branches_on_staging,
        name="branches_on_staging"),
    url(r'^mass_email/$', mass_email, name="mass_email"),
    # Same view supported with three possible urls to support tracking
    # username and domain in the url via audit
    url(r'^auth_as/$', AuthenticateAs.as_view(), name=AuthenticateAs.urlname),
Example #2
0
    AppBuildTimingsView,
    AuthenticateAs,
    DisableTwoFactorView,
    DisableUserView,
    SuperuserManagement,
    WebUserDataView,
    web_user_lookup,
)

from corehq.apps.reports.dispatcher import AdminReportDispatcher

from corehq.apps.api.urls import admin_urlpatterns as admin_api_urlpatterns

urlpatterns = [
    url(r'^$', default, name="default_admin_report"),
    url(r'^system/$', SystemInfoView.as_view(), name=SystemInfoView.urlname),
    url(r'^system/recent_changes/$', RecentCouchChangesView.as_view(),
        name=RecentCouchChangesView.urlname),
    url(r'^system/recent_changes/download/$', download_recent_changes, name="download_recent_changes"),
    url(r'^system/system_ajax$', system_ajax, name="system_ajax"),
    url(r'^system/check_services$', check_services, name="check_services"),
    url(r'^system/autostaging/$', branches_on_staging, name="branches_on_staging"),
    url(r'^mass_email/$', mass_email, name="mass_email"),
    # Same view supported with three possible urls to support tracking
    # username and domain in the url via audit
    url(r'^auth_as/$', AuthenticateAs.as_view(), name=AuthenticateAs.urlname),
    url(r'^auth_as/(?P<username>[^/]*)/$', AuthenticateAs.as_view(), name=AuthenticateAs.urlname),
    url(r'^auth_as/(?P<username>[^/]*)/(?P<domain>{})/$'.format(new_domain_re),
        AuthenticateAs.as_view(), name=AuthenticateAs.urlname),
    url(r'^superuser_management/$', SuperuserManagement.as_view(), name=SuperuserManagement.urlname),
    url(r'^phone/restore/$', AdminRestoreView.as_view(), name="admin_restore"),