old_contents: # -*- coding: utf-8 -*-
  
  from django.conf import settings
  from django.conf.urls import patterns, include, url
  from django.conf.urls.i18n import i18n_patterns
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.contrib import admin
  
  admin.autodiscover()
  
  handler500 = 'oneflow.base.views.error_handler'
  handler404 = 'oneflow.base.views.not_found_handler'
  
  # urlpatterns = patterns('',
  #     url(r'^sitemap\.xml$', 'sitemap.view', name='sitemap_xml'),
  # )
  
  urlpatterns = patterns(
      '',
      url(r'', include('oneflow.base.urls')),
      url(r'^i18n/', include('django.conf.urls.i18n')),
      url(r'^djangojs/', include('djangojs.urls')),
  )
  
  urlpatterns += i18n_patterns(
      '',
      # NEVER use r'^$', this won't work as expected. Use r''.
      url(r'', include('oneflow.landing.urls')),
      url(r'', include('oneflow.profiles.urls')),
      url(r'', include('oneflow.core.urls')),
  )
  
  # WARNING: when sites are spread across different machines, rosetta
  # must be migrated to run on only one dedicated, to avoid messing
  # with partially translated .PO files on many 1flow servers.
  if 'rosetta' in settings.INSTALLED_APPS:
      urlpatterns += patterns(
          '', url(r'^translate/', include('rosetta.urls')),
      )
  
  urlpatterns += patterns(
      '',
      url(r'^grappelli/', include('grappelli.urls')),
      url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
      url(r'^admin/', include(admin.site.urls)),
  )
  
  # This will add urls only when DEBUG=True
  # cf. https://docs.djangoproject.com/en/1.5/ref/contrib/staticfiles/
  #           #django.contrib.staticfiles.urls.staticfiles_urlpatterns
  urlpatterns += staticfiles_urlpatterns()
  
new_contents: # -*- coding: utf-8 -*-
  
  from django.conf import settings
  from django.conf.urls import patterns, include, url
  from django.conf.urls.i18n import i18n_patterns
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.contrib import admin
  
  #admin.autodiscover()
  
  handler500 = 'oneflow.base.views.error_handler'
  handler404 = 'oneflow.base.views.not_found_handler'
  
  # urlpatterns = patterns('',
  #     url(r'^sitemap\.xml$', 'sitemap.view', name='sitemap_xml'),
  # )
  
  urlpatterns = patterns(
      '',
      url(r'', include('oneflow.base.urls')),
      url(r'^i18n/', include('django.conf.urls.i18n')),
      url(r'^djangojs/', include('djangojs.urls')),
  )
  
  urlpatterns += i18n_patterns(
      '',
      # NEVER use r'^$', this won't work as expected. Use r''.
      url(r'', include('oneflow.landing.urls')),
      url(r'', include('oneflow.profiles.urls')),
      url(r'', include('oneflow.core.urls')),
  )
  
  # WARNING: when sites are spread across different machines, rosetta
  # must be migrated to run on only one dedicated, to avoid messing
  # with partially translated .PO files on many 1flow servers.
  if 'rosetta' in settings.INSTALLED_APPS:
      urlpatterns += patterns(
          '', url(r'^translate/', include('rosetta.urls')),
      )
  
  urlpatterns += patterns(
      '',
      url(r'^grappelli/', include('grappelli.urls')),
      url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
      url(r'^admin/', include(admin.site.urls)),
  )
  
  # This will add urls only when DEBUG=True
  # cf. https://docs.djangoproject.com/en/1.5/ref/contrib/staticfiles/
  #           #django.contrib.staticfiles.urls.staticfiles_urlpatterns
  urlpatterns += staticfiles_urlpatterns()
  
subject: disable the admin.autodiscover(), it breaks with the current WIP core.