"""
Kolibri core url patterns
=========================

This module should be the glue between all other url patterns.

Do NOT use kolibri.deployment.default project's urlconf for such! That file can
be modified by users.

Reverse lookups
---------------

Kolibri uses the ``'kolibri'`` namespace. To point to something in Kolibri, use
the following lookup pattern:

.. code-block:: html+django

    <!-- A built-in kolibri URL -->
    {% url 'kolibri:url_name' %}

    <!-- A plugin URL -->
    {% url 'kolibri:pluginnamespace:url_name' %}


Defining URLs for plugins
-------------------------

Plugin classes can define url modules, and they will automatically be included.

Place a url.py and have your plugin's definition class's ``url_module`` method
return the module.
"""
from __future__ import absolute_import, print_function, unicode_literals

from django.conf.urls import url
from django.shortcuts import redirect
from kolibri.plugins import hooks

from kolibri.plugins.registry import get_urls as plugin_urls

from . import views


app_name = 'kolibri'

def redirect_view(request):
    return redirect("/learn")

urlpatterns = [
    url('', redirect_view, name='index'),
]

urlpatterns += plugin_urls() + [
    url('^$', views.IndexView.as_view(), name='index'),
]

@@ -922,43 +922,8 @@
 ect%0A
-from kolibri.plugins import hooks%0A%0A
 from
@@ -984,30 +984,8 @@
 ls%0A%0A
-from . import views%0A%0A%0A
 app_
@@ -1002,16 +1002,17 @@
 libri'%0A%0A
+%0A
 def redi
@@ -1123,16 +1123,16 @@
 x'),%0A%5D%0A%0A
+
 urlpatte
@@ -1155,67 +1155,5 @@
 ls()
- + %5B%0A    url('%5E$', views.IndexView.as_view(), name='index'),%0A%5D
 %0A

Remove nonexistent view, urlconf