old_contents: """
  URL mappings for muckrock project
  """
  
  # pylint: disable-msg=W0611
  # these are called dynmically
  from django.conf.urls.defaults import handler404, handler500
  # pylint: enable-msg=W0611
  from django.conf.urls.defaults import patterns, include, url
  from django.contrib import admin
  from django.contrib.auth.decorators import login_required
  from django.views.generic.simple import direct_to_template
  
  import haystack.urls
  
  import muckrock.accounts.urls, muckrock.foia.urls, muckrock.news.urls
  import muckrock.settings
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', direct_to_template, {'template': 'beta_home.html'}, name='index'),
      url(r'^accounts/', include(muckrock.accounts.urls)),
      url(r'^foia/', include(muckrock.foia.urls)),
      url(r'^news/', include(muckrock.news.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^search/', login_required(include(haystack.urls))),
  )
  
  if muckrock.settings.DEBUG:
      urlpatterns += patterns('',
          (r'^static/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': '/home/mitch/documents/work/muckrock/src/muckrock/static'}),
          (r'^user_media/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': '/home/mitch/documents/work/muckrock/src/muckrock/user_media'}),
      )
  
new_contents: """
  URL mappings for muckrock project
  """
  
  # pylint: disable-msg=W0611
  # these are called dynmically
  from django.conf.urls.defaults import handler404, handler500
  # pylint: enable-msg=W0611
  from django.conf.urls.defaults import patterns, include, url
  from django.contrib import admin
  from django.contrib.auth.decorators import login_required
  from django.views.generic.simple import direct_to_template
  
  from haystack.views import basic_search
  
  import muckrock.accounts.urls, muckrock.foia.urls, muckrock.news.urls
  import muckrock.settings
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', direct_to_template, {'template': 'beta_home.html'}, name='index'),
      url(r'^accounts/', include(muckrock.accounts.urls)),
      url(r'^foia/', include(muckrock.foia.urls)),
      url(r'^news/', include(muckrock.news.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^search/$', login_required(basic_search)),
  )
  
  if muckrock.settings.DEBUG:
      urlpatterns += patterns('',
          (r'^static/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': '/home/mitch/documents/work/muckrock/src/muckrock/static'}),
          (r'^user_media/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': '/home/mitch/documents/work/muckrock/src/muckrock/user_media'}),
      )
  
subject: fix private search