text: """kaistusc URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.10/topics/http/urls/
  Examples:
  Function views
      1. Add an import:  from my_app import views
      2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
  Class-based views
      1. Add an import:  from other_app.views import Home
      2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
  Including another URLconf
      1. Import the include() function: from django.conf.urls import url, include
      2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
  """
  from django.conf.urls import include, url
  from django.contrib import admin
  from django.views.generic import TemplateView
  from django.conf import settings
  from django.conf.urls.static import static
  from apps.board.views import BoardView
  from apps.manager.views import ServiceView, MainPageView, ErrorView
  
  from apps.board.router import router
  
  handler400 = ErrorView.as_view(template_name='error/400.jinja', status_code=400)
  handler403 = ErrorView.as_view(template_name='error/403.jinja', status_code=403)
  handler404 = ErrorView.as_view(template_name='error/404.jinja', status_code=404)
  handler500 = ErrorView.as_view(template_name='error/500.jinja', status_code=500)
  
  urlpatterns = [
      # Main page
      url(r'^$', MainPageView.as_view(), name='main'),
  
      url(r'^api/', include(router.urls)),
  
      # Basic app redirections
      url(r'^admin/', admin.site.urls),
      url(r'^user/', include('apps.ksso.urls', namespace='ksso')),
  
      # Service redirections
      url(r'^(?P<url>usc/rule)/', include('apps.rule.urls.rule')),
      url(r'^(?P<url>board/[a-z0-9]*[a-z]+[a-z0-9]*)/', include('apps.board.urls')),
      url(r'^revision/', include('apps.rule.urls.revision')),
  
      # Custom static page
      # For freshmen ot
      url(r'^ot/', include('apps.ot.urls')),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  # debuging mode in Window
  