old_contents: from django.conf import settings
  from django.conf.urls import include, url, patterns
  from django.conf.urls.static import static
  from settings import API_BASE
  from website.settings import DEV_MODE
  
  from . import views
  
  base_pattern = '^{}'.format(API_BASE)
  
  urlpatterns = [
      ### API ###
      url(base_pattern,
          include(patterns('',
                           url(r'^$', views.root, name='root'),
                           url(r'^applications/', include('api.applications.urls', namespace='applications')),
                           url(r'^nodes/', include('api.nodes.urls', namespace='nodes')),
                           url(r'^users/', include('api.users.urls', namespace='users')),
                           url(r'^files/', include('api.files.urls', namespace='files')),
                           url(r'^docs/', include('rest_framework_swagger.urls')),
                           ))
          )
  ]
  
  if DEV_MODE:
      urlpatterns.extend([
          url(r'^collections/', include('api.collections.urls', namespace='collections')),
      ])
  
  urlpatterns += static('/static/', document_root=settings.STATIC_ROOT)
  
  handler404 = views.error_404
  
new_contents: from django.conf import settings
  from django.conf.urls import include, url, patterns
  from django.conf.urls.static import static
  from settings import API_BASE
  from website.settings import DEV_MODE
  
  from . import views
  
  base_pattern = '^{}'.format(API_BASE)
  
  urlpatterns = [
      ### API ###
      url(base_pattern,
          include(patterns('',
                           url(r'^$', views.root, name='root'),
                           url(r'^applications/', include('api.applications.urls', namespace='applications')),
                           url(r'^nodes/', include('api.nodes.urls', namespace='nodes')),
                           url(r'^users/', include('api.users.urls', namespace='users')),
                           url(r'^files/', include('api.files.urls', namespace='files')),
                           url(r'^docs/', include('rest_framework_swagger.urls')),
                           ))
          )
  ]
  
  if DEV_MODE:
      urlpatterns.extend([
          url(r'^v2/collections/', include('api.collections.urls', namespace='collections')),
      ])
  
  urlpatterns += static('/static/', document_root=settings.STATIC_ROOT)
  
  handler404 = views.error_404
  
subject: Make collections link go to v2 route