text: from django.conf.urls import include, url
  from django.contrib import admin
  import settings
  from . import views
  
  base_pattern = '^{}'.format(settings.ADMIN_BASE)
  
  urlpatterns = [
      ### ADMIN ###
      url(
          base_pattern,
          include([
              url(r'^$', views.home, name='home'),
              url(r'^admin/', admin.site.urls),
              url(r'^asset_files/', include('admin.asset_files.urls', namespace='asset_files')),
              url(r'^banners/', include('admin.banners.urls', namespace='banners')),
              url(r'^spam/', include('admin.spam.urls', namespace='spam')),
              url(r'^institutions/', include('admin.institutions.urls', namespace='institutions')),
              url(r'^quota_recalc/', include('admin.quota_recalc.urls', namespace='quota_recalc')),
              url(r'^preprint_providers/', include('admin.preprint_providers.urls', namespace='preprint_providers')),
              url(r'^collection_providers/', include('admin.collection_providers.urls', namespace='collection_providers')),
              url(r'^registration_providers/', include('admin.registration_providers.urls', namespace='registration_providers')),
              url(r'^account/', include('admin.common_auth.urls', namespace='auth')),
              url(r'^password/', include('password_reset.urls')),
              url(r'^nodes/', include('admin.nodes.urls', namespace='nodes')),
              url(r'^preprints/', include('admin.preprints.urls', namespace='preprints')),
              url(r'^subjects/', include('admin.subjects.urls', namespace='subjects')),
              url(r'^users/', include('admin.users.urls', namespace='users')),
              url(r'^maintenance/', include('admin.maintenance.urls', namespace='maintenance')),
              url(r'^meetings/', include('admin.meetings.urls',
                                         namespace='meetings')),
              url(r'^project/', include('admin.pre_reg.urls', namespace='pre_reg')),
              url(r'^metrics/', include('admin.metrics.urls',
                                        namespace='metrics')),
              url(r'^desk/', include('admin.desk.urls',
                                     namespace='desk')),
              url(r'^osf_groups/', include('admin.osf_groups.urls', namespace='osf_groups')),
              url(r'^announcement/', include('admin.rdm_announcement.urls', namespace='announcement')),
              url(r'^addons/', include('admin.rdm_addons.urls', namespace='addons')),
              url(r'^oauth/', include('admin.rdm_addons.oauth.urls', namespace='oauth')),
              url(r'^statistics/', include('admin.rdm_statistics.urls', namespace='statistics')),
              url(r'^timestampadd/', include('admin.rdm_timestampadd.urls', namespace='timestampadd')),
              url(r'^keymanagement/', include('admin.rdm_keymanagement.urls', namespace='keymanagement')),
              url(r'^timestampsettings/', include('admin.rdm_timestampsettings.urls', namespace='timestampsettings')),
              url(r'^custom_storage_location/', include('admin.rdm_custom_storage_location.urls', namespace='custom_storage_location')),
          ]),
      ),
  ]
  
  if settings.DEBUG:
      import debug_toolbar
  
      urlpatterns += [
          url(r'^__debug__/', include(debug_toolbar.urls)),
      ]
  
  admin.site.site_header = 'OSF-Admin administration'
  