Example #1
0
    raw_couch,
    raw_doc,
    run_command,
    stats_data,
    system_ajax,
    pillow_operation_api,
    web_user_lookup,
)
from corehq.apps.reports.dispatcher import AdminReportDispatcher

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

urlpatterns = patterns('corehq.apps.hqadmin.views',
    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'^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'^management_commands/$', ManagementCommandsView.as_view(),
        name=ManagementCommandsView.urlname),
    url(r'^superuser_management/$', SuperuserManagement.as_view(), name=SuperuserManagement.urlname),
    url(r'^run_command/$', run_command, name="run_management_command"),
    url(r'^vcm_migration/$', VCMMigrationView.as_view(), name=VCMMigrationView.urlname),
    url(r'^phone/restore/$', AdminRestoreView.as_view(), name="admin_restore"),
Example #2
0
    RecentCouchChangesView, ReprocessMessagingCaseUpdatesView,
    SuperuserManagement, SystemInfoView, WebUserDataView,
    admin_reports_stats_data, branches_on_staging, callcenter_test,
    check_services, default, doc_in_es, download_recent_changes, raw_couch,
    raw_doc, run_command, stats_data, system_ajax, pillow_operation_api,
    web_user_lookup, top_five_projects_by_country)

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'^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(),
Example #3
0
    raw_doc,
    run_command,
    stats_data,
    system_ajax,
    pillow_operation_api,
    web_user_lookup,
    top_five_projects_by_country,
)
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'^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'^management_commands/$', ManagementCommandsView.as_view(),
        name=ManagementCommandsView.urlname),
    url(r'^superuser_management/$', SuperuserManagement.as_view(), name=SuperuserManagement.urlname),
    url(r'^run_command/$', run_command, name="run_management_command"),
    url(r'^phone/restore/$', AdminRestoreView.as_view(), name="admin_restore"),
    url(r'^phone/restore/(?P<app_id>[\w-]+)/$', AdminRestoreView.as_view(), name='app_aware_admin_restore'),