text: from django.conf import settings
  from django.conf.urls import handler500, handler404, patterns, include, \
      url
  try:
      from django.conf.urls.i18n import i18n_patterns
  except ImportError:
      from i18nurls.i18n import i18n_patterns
  from django.contrib import admin
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^admin/', include(admin.site.urls)),
      url(r'^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog'),
      url(r'^media/cms/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.CMS_MEDIA_ROOT, 'show_indexes': True}),
      url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
  )
  
  urlpatterns += i18n_patterns('',
      url(r'^', include('cms.test_utils.project.third_cms_urls_for_apphook_tests')),
  )
  
  
  if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
      import debug_toolbar
      urlpatterns += patterns('',
          url(r'^__debug__/', include(debug_toolbar.urls)),
      )
  