old_contents: """derrida URL Configuration
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.10/topics/http/urls/
  """
  from annotator_store import views as annotator_views
  from django.conf import settings
  from django.conf.urls import url, include
  from django.contrib import admin
  from django.views.generic import TemplateView
  from django.views.generic.base import RedirectView
  
  from derrida.books.views import SearchView
  
  
  urlpatterns = [
      # for now, since there is not yet any public-facing site,
      # redirect base url to admin index page
      url(r'^$', RedirectView.as_view(pattern_name='admin:index'), name='site-index'),
  
      # placeholders for new design
      url(r'^citations/$', RedirectView.as_view(pattern_name='admin:index'), name='citations-list'),
  
      # grappelli URLS for admin related lookups & autocompletes
      url(r'^grappelli/', include('grappelli.urls')),
  
      url(r'^admin/', admin.site.urls),
      url(r'^accounts/', include('pucas.cas_urls')),
      url(r'^', include('derrida.books.urls', namespace='books')),
      url(r'^search/$', SearchView.as_view(), name='search'),
      url(r'^people/', include('derrida.people.urls', namespace='people')),
      url(r'^places/', include('derrida.places.urls', namespace='places')),
      url(r'^interventions/', include('derrida.interventions.urls', namespace='interventions')),
      url(r'^viaf/', include('viapy.urls', namespace='viaf')),
  
      # local version of djiffy urls
      url(r'^admin/iiif-books/', include('derrida.interventions.iiif_urls', namespace='djiffy')),
  
      # annotations API
      url(r'^annotations/api/', include('annotator_store.urls', namespace='annotation-api')),
  
      # annotatorjs doesn't handle trailing slash in api prefix url
      url(r'^annotations/api', annotator_views.AnnotationIndex.as_view(), name='annotation-api-prefix'),
  
      url(r'^index', TemplateView.as_view(template_name='public/index.html'), name="home"),
      # url(r'^library', TemplateView.as_view(template_name='public/library.html'), name="library"),
      url(r'^visualization', TemplateView.as_view(template_name='public/visualization.html'), name="visualization"),
  
      url(r'^citations', TemplateView.as_view(template_name='public/citations.html'), name="citations-list"),
  
      # url(r'^search', TemplateView.as_view(template_name='public/search-results.html'), name="search"),
  
      url(r'^inputs', TemplateView.as_view(template_name='public/search-inputs.html'), name="show-inputs"),
  
  ]
  
  # NOTE: for some reason this isn't getting added automatically
  if settings.DEBUG:
      try:
          import debug_toolbar
          urlpatterns += url(r'^__debug__/', include(debug_toolbar.urls)),
      except ImportError:
          pass
  
new_contents: """derrida URL Configuration
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.10/topics/http/urls/
  """
  from annotator_store import views as annotator_views
  from django.conf import settings
  from django.conf.urls import url, include
  from django.contrib import admin
  from django.views.generic import TemplateView
  from django.views.generic.base import RedirectView
  
  from derrida.books.views import SearchView
  
  
  urlpatterns = [
      # for now, since there is not yet any public-facing site,
      # redirect base url to admin index page
      url(r'^$', TemplateView.as_view(template_name='public/index.html'), name="home"),
  
      # placeholders for new design
      url(r'^citations/$', RedirectView.as_view(pattern_name='admin:index'), name='citations-list'),
  
      # grappelli URLS for admin related lookups & autocompletes
      url(r'^grappelli/', include('grappelli.urls')),
  
      url(r'^admin/', admin.site.urls),
      url(r'^accounts/', include('pucas.cas_urls')),
      url(r'^', include('derrida.books.urls', namespace='books')),
      url(r'^search/$', SearchView.as_view(), name='search'),
      url(r'^people/', include('derrida.people.urls', namespace='people')),
      url(r'^places/', include('derrida.places.urls', namespace='places')),
      url(r'^interventions/', include('derrida.interventions.urls', namespace='interventions')),
      url(r'^viaf/', include('viapy.urls', namespace='viaf')),
  
      # local version of djiffy urls
      url(r'^admin/iiif-books/', include('derrida.interventions.iiif_urls', namespace='djiffy')),
  
      # annotations API
      url(r'^annotations/api/', include('annotator_store.urls', namespace='annotation-api')),
  
      # annotatorjs doesn't handle trailing slash in api prefix url
      url(r'^annotations/api', annotator_views.AnnotationIndex.as_view(), name='annotation-api-prefix'),
  
      # url(r'^library', TemplateView.as_view(template_name='public/library.html'), name="library"),
      url(r'^visualization', TemplateView.as_view(template_name='public/visualization.html'), name="visualization"),
  
      url(r'^citations', TemplateView.as_view(template_name='public/citations.html'), name="citations-list"),
  
      # url(r'^search', TemplateView.as_view(template_name='public/search-results.html'), name="search"),
  
      url(r'^inputs', TemplateView.as_view(template_name='public/search-inputs.html'), name="show-inputs"),
  
  ]
  
  # NOTE: for some reason this isn't getting added automatically
  if settings.DEBUG:
      try:
          import debug_toolbar
          urlpatterns += url(r'^__debug__/', include(debug_toolbar.urls)),
      except ImportError:
          pass
  
subject: Remove admin redirect and index view set at /