old_contents: from django.conf.urls import patterns, include, url
  from django.conf import settings
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf.urls.static import static
  
  
  urlpatterns = patterns('',
      # The api urls are in the / url namespace so that they're not redirected to /en/.
      url(r'^api/users/', include('bluebottle.accounts.urls_api')),
      url(r'^api/geo/', include('bluebottle.geo.urls_api')),
      url(r'^api/metadata/', include('bluebottle.utils.urls_api')),
      url(r'^api/pages/', include('bluebottle.pages.urls_api')),
      url(r'^api/projects/', include('bluebottle.projects.urls_api')),
      url(r'^api/utils/', include('bluebottle.utils.urls_api')),
  )
  
  urlpatterns += patterns('loginas.views',
      url(r"^login/user/(?P<user_id>.+)/$", "user_login", name="loginas-user-login"),
  )
  
  js_info_dict = {
      'packages': ('apps.accounts', 'apps.projects'),
  }
  
  urlpatterns += patterns('',
      (r'^js$', 'django.views.i18n.javascript_catalog'),
  )
  
  # Serve django-staticfiles (only works in DEBUG)
  # https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-development
  urlpatterns += staticfiles_urlpatterns()
  
  # Serve media files (only works in DEBUG)
  # https://docs.djangoproject.com/en/dev/howto/static-files/#django.conf.urls.static.static
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
new_contents: from django.conf.urls import patterns, include, url
  from django.conf import settings
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf.urls.static import static
  
  
  urlpatterns = patterns('',
      # The api urls are in the / url namespace so that they're not redirected to /en/.
      url(r'^api/users/', include('bluebottle.accounts.urls_api')),
      url(r'^api/geo/', include('bluebottle.geo.urls_api')),
      url(r'^api/metadata/', include('bluebottle.utils.urls_api')),
  
  )
  
  for app in settings.INSTALLED_APPS:
      if app[:11] == 'bluebottle.':
          app = app[11:]
          if app not in ['common', 'accounts', 'utils']:
              urlpatterns += patterns('',
                  url(r'^api/%s/' %app, include('bluebottle.' + app + '.urls_api')),
              )
  
  
  
  urlpatterns += patterns('loginas.views',
      url(r"^login/user/(?P<user_id>.+)/$", "user_login", name="loginas-user-login"),
  )
  
  js_info_dict = {
      'packages': ('apps.accounts', 'apps.projects'),
  }
  
  urlpatterns += patterns('',
      (r'^js$', 'django.views.i18n.javascript_catalog'),
  )
  
  # Serve django-staticfiles (only works in DEBUG)
  # https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-development
  urlpatterns += staticfiles_urlpatterns()
  
  # Serve media files (only works in DEBUG)
  # https://docs.djangoproject.com/en/dev/howto/static-files/#django.conf.urls.static.static
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: Load urls based on configs