old_contents: '''
  @author: jnaous
  '''
  from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.conf import settings
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', 'expedient.clearinghouse.views.home', name='home'),
      
      (r'^users/', include('expedient.clearinghouse.users.urls')),
      (r'^aggregate/', include('expedient.clearinghouse.aggregate.urls')),
      (r'^project/', include('expedient.clearinghouse.project.urls')),
      (r'^slice/', include('expedient.clearinghouse.slice.urls')),
      (r'^openflow/', include('openflow.plugin.urls')),
      (r'^messages/', include('expedient.common.messaging.urls')),
      (r'^permissions/', include('expedient.common.permissions.urls')),
      (r'^permissions/', include('expedient.common.permissions.urls')),
      (r'^admin/', include(admin.site.urls)),
  
      # TODO: Change to the following after 0.8 of registration is out
      # (r'^accounts/', include('registration.backends.default.urls')),
      (r'^accounts/', include('registration.urls')),
  
      # TODO: Remove after testing
      (r'^dummyom/', include('openflow.dummyom.urls')),
  )
  
  
  # Add the plugin URLs:
  for plugin in getattr(settings, "UI_PLUGINS", []):
      urlpatterns += patterns('', (r'%s/' % plugin[1], include(plugin[2])))
  
  def get_static_url(name, path=""):
      static_file_tuple = (
          r'^%s%s/(?P<path>.*)$' % (settings.MEDIA_URL[1:], path),
          'django.views.static.serve',
          {'document_root': "%s" % settings.MEDIA_ROOT})
      return url(*static_file_tuple, name=name)
  
  urlpatterns += patterns('',
     # TODO: Serve static content, should be removed in production deployment
      # serve from another domain to speed up connections (no cookies needed)
      get_static_url("img_media"),
      get_static_url("css_media"),
      get_static_url("js_media", "/js"),
  )
  
new_contents: '''
  @author: jnaous
  '''
  from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.conf import settings
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', 'expedient.clearinghouse.views.home', name='home'),
      
      (r'^users/', include('expedient.clearinghouse.users.urls')),
      (r'^aggregate/', include('expedient.clearinghouse.aggregate.urls')),
      (r'^project/', include('expedient.clearinghouse.project.urls')),
      (r'^slice/', include('expedient.clearinghouse.slice.urls')),
      (r'^openflow/', include('openflow.plugin.urls')),
      (r'^planetlab/', include('geni.planetlab.urls')),
      (r'^messages/', include('expedient.common.messaging.urls')),
      (r'^permissions/', include('expedient.common.permissions.urls')),
      (r'^permissions/', include('expedient.common.permissions.urls')),
      (r'^admin/', include(admin.site.urls)),
  
      # TODO: Change to the following after 0.8 of registration is out
      # (r'^accounts/', include('registration.backends.default.urls')),
      (r'^accounts/', include('registration.urls')),
  
      # TODO: Remove after testing
      (r'^dummyom/', include('openflow.dummyom.urls')),
  )
  
  
  # Add the plugin URLs:
  for plugin in getattr(settings, "UI_PLUGINS", []):
      urlpatterns += patterns('', (r'%s/' % plugin[1], include(plugin[2])))
  
  def get_static_url(name, path=""):
      static_file_tuple = (
          r'^%s%s/(?P<path>.*)$' % (settings.MEDIA_URL[1:], path),
          'django.views.static.serve',
          {'document_root': "%s" % settings.MEDIA_ROOT})
      return url(*static_file_tuple, name=name)
  
  urlpatterns += patterns('',
     # TODO: Serve static content, should be removed in production deployment
      # serve from another domain to speed up connections (no cookies needed)
      get_static_url("img_media"),
      get_static_url("css_media"),
      get_static_url("js_media", "/js"),
  )
  
subject: add planetlab url